diff options
author | Max Horn | 2003-11-02 02:18:16 +0000 |
---|---|---|
committer | Max Horn | 2003-11-02 02:18:16 +0000 |
commit | b27a871f870df854a6db0f4530d4596483927bb1 (patch) | |
tree | f6c75300cd5dcd22b67044256e36a01f985a054d /base/gameDetector.cpp | |
parent | f2c4bbbdbfb06b5296eb3fcdcb7235292e6ac039 (diff) | |
download | scummvm-rg350-b27a871f870df854a6db0f4530d4596483927bb1.tar.gz scummvm-rg350-b27a871f870df854a6db0f4530d4596483927bb1.tar.bz2 scummvm-rg350-b27a871f870df854a6db0f4530d4596483927bb1.zip |
turned NewGui into a singleton, and made OSystem a pseudo-singleton; added Widget::findWidget (preparing to add support for nested widgets, for the tab widget)
svn-id: r11045
Diffstat (limited to 'base/gameDetector.cpp')
-rw-r--r-- | base/gameDetector.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/base/gameDetector.cpp b/base/gameDetector.cpp index 0f2a8611a7..cc7f4a4b13 100644 --- a/base/gameDetector.cpp +++ b/base/gameDetector.cpp @@ -22,7 +22,6 @@ #include "stdafx.h" -#include "backends/intern.h" #include "base/engine.h" #include "base/gameDetector.h" #include "base/plugins.h" @@ -587,31 +586,6 @@ bool GameDetector::detectMain() { return true; } -OSystem *GameDetector::createSystem() { - int gfx_mode = parseGraphicsMode(ConfMan.get("gfx_mode")); // FIXME: Get rid of this again! - -#if defined(USE_NULL_DRIVER) - return OSystem_NULL_create(); -#elif defined(__DC__) - return OSystem_Dreamcast_create(); -#elif defined(X11_BACKEND) - return OSystem_X11_create(); -#elif defined(__MORPHOS__) - return OSystem_MorphOS_create(gfx_mode, ConfMan.getBool("fullscreen")); -#elif defined(_WIN32_WCE) - return OSystem_WINCE3_create(); -#elif defined(MACOS_CARBON) - return OSystem_MAC_create(gfx_mode, ConfMan.getBool("fullscreen")); -#elif defined(__GP32__) // ph0x - return OSystem_GP32_create(GFX_NORMAL, true); -#elif defined(__PALM_OS__) //chrilith - return OSystem_PALMOS_create(gfx_mode, ConfMan.getBool("fullscreen")); -#else - /* SDL is the default driver for now */ - return OSystem_SDL_create(gfx_mode); -#endif -} - Engine *GameDetector::createEngine(OSystem *sys) { assert(_plugin); return _plugin->createInstance(this, sys); |