diff options
Diffstat (limited to 'engines/wintermute/wintermute.cpp')
-rw-r--r-- | engines/wintermute/wintermute.cpp | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/engines/wintermute/wintermute.cpp b/engines/wintermute/wintermute.cpp index 7bfe1ece01..2782ecd2c3 100644 --- a/engines/wintermute/wintermute.cpp +++ b/engines/wintermute/wintermute.cpp @@ -36,7 +36,6 @@ #include "engines/wintermute/wintermute.h" #include "engines/wintermute/platform_osystem.h" #include "engines/wintermute/base/base_engine.h" -#include "engines/wintermute/base/base_registry.h" #include "engines/wintermute/base/sound/base_sound_manager.h" #include "engines/wintermute/base/base_file_manager.h" @@ -193,18 +192,28 @@ int WinterMuteEngine::init() { } else if (scumm_stricmp(param, "-windowed") == 0) windowedMode = true; }*/ + if (ConfMan.hasKey("debug_mode")) { + if (ConfMan.getBool("debug_mode")) { + _game->DEBUG_DebugEnable("./wme.log"); + } + } - if (BaseEngine::instance().getRegistry()->readBool("Debug", "DebugMode")) _game->DEBUG_DebugEnable("./wme.log"); + if (ConfMan.hasKey("show_fps")) { + _game->_debugShowFPS = ConfMan.getBool("show_fps"); + } else { + _game->_debugShowFPS = false; + } - _game->_debugShowFPS = BaseEngine::instance().getRegistry()->readBool("Debug", "ShowFPS"); + if (ConfMan.hasKey("disable_smartcache")) { + _game->_smartCache = ConfMan.getBool("disable_smartcache"); + } else { + _game->_smartCache = true; + } - if (BaseEngine::instance().getRegistry()->readBool("Debug", "DisableSmartCache")) { + if (!_game->_smartCache) { _game->LOG(0, "Smart cache is DISABLED"); - _game->_smartCache = false; } - /* bool allowDirectDraw = _game->_registry->readBool("Debug", "AllowDirectDraw", false);*/ - // load general game settings _game->initialize1(); |