aboutsummaryrefslogtreecommitdiff
path: root/gameDetector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gameDetector.cpp')
-rw-r--r--gameDetector.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/gameDetector.cpp b/gameDetector.cpp
index f6ecaa2bad..d74143ef86 100644
--- a/gameDetector.cpp
+++ b/gameDetector.cpp
@@ -341,6 +341,12 @@ int GameDetector::detectMain(int argc, char **argv)
_gfx_mode = GFX_DOUBLESIZE;
+ _gfx_driver = GD_AUTO;
+
+#ifdef USE_NULL_DRIVER
+ _gfx_driver = GD_NULL;
+#endif
+
_gameDataPath = NULL;
_gameTempo = 0;
_soundCardType = 3;
@@ -392,6 +398,9 @@ OSystem *GameDetector::createSystem() {
case GD_X:
/* not implemented yet */
break;
+
+ case GD_NULL:
+ return OSystem_NULL_create();
}
error("Invalid graphics driver");