BASE: Allow setting the debug flags from the configuration file

Useful for devices where passing command line arguments is not possible.
This commit is contained in:
Bastien Bouclet 2016-06-05 11:43:07 +02:00
parent c4e8ea9e54
commit 8294d55a53

View file

@ -388,7 +388,8 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
if (settings.contains("debugflags")) {
specialDebug = settings["debugflags"];
settings.erase("debugflags");
}
} else if (ConfMan.hasKey("debugflags"))
specialDebug = ConfMan.get("debugflags");
PluginManager::instance().init();
PluginManager::instance().loadAllPlugins(); // load plugins for cached plugin manager