mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 23:43:10 +00:00
fix debug mode 0
svn-id: r10791
This commit is contained in:
parent
c21d371e9c
commit
ebd314a9ec
@ -221,7 +221,6 @@ GameDetector::GameDetector() {
|
||||
ConfMan.registerDefault("joystick_num", -1);
|
||||
ConfMan.registerDefault("confirm_exit", false);
|
||||
|
||||
_debugMode = (ConfMan.getInt("debuglevel") >= 0);
|
||||
_dumpScripts = false;
|
||||
_midi_driver = MD_AUTO;
|
||||
|
||||
@ -311,7 +310,6 @@ void GameDetector::parseCommandLine(int argc, char **argv) {
|
||||
ConfMan.set("cdrom", (int)strtol(option, 0, 10));
|
||||
break;
|
||||
case 'd':
|
||||
_debugMode = true;
|
||||
HANDLE_OPT_OPTION();
|
||||
if (option != NULL)
|
||||
ConfMan.set("debuglevel", (int)strtol(option, 0, 10));
|
||||
@ -478,7 +476,6 @@ ShowHelpAndExit:
|
||||
void GameDetector::setTarget(const String &name) {
|
||||
_targetName = name;
|
||||
ConfMan.setActiveDomain(name);
|
||||
_debugMode = (ConfMan.getInt("debuglevel") >= 0);
|
||||
}
|
||||
|
||||
int GameDetector::parseGraphicsMode(const String &str) {
|
||||
|
@ -106,7 +106,6 @@ public:
|
||||
GameSettings _game;
|
||||
const Plugin *_plugin;
|
||||
|
||||
bool _debugMode;
|
||||
bool _dumpScripts;
|
||||
bool _saveconfig;
|
||||
|
||||
|
@ -64,7 +64,7 @@ QueenEngine::QueenEngine(GameDetector *detector, OSystem *syst)
|
||||
|
||||
_mixer->setVolume(ConfMan.getInt("sfx_volume"));
|
||||
|
||||
_debugMode = detector->_debugMode;
|
||||
_debugMode = ConfMan.hasKey("debuglevel");
|
||||
_debugLevel = ConfMan.getInt("debuglevel");
|
||||
_detector = detector;
|
||||
|
||||
|
@ -595,7 +595,7 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst)
|
||||
_debugger = new ScummDebugger(this);
|
||||
|
||||
// Read settings from the detector & config manager
|
||||
_debugMode = detector->_debugMode;
|
||||
_debugMode = ConfMan.hasKey("debuglevel");
|
||||
_debugLevel = ConfMan.getInt("debuglevel");
|
||||
_dumpScripts = detector->_dumpScripts;
|
||||
_bootParam = ConfMan.getInt("boot_param");
|
||||
@ -887,7 +887,7 @@ void ScummEngine::launch() {
|
||||
VAR(VAR_VERSION) = 21;
|
||||
|
||||
if (!((_features & GF_MACINTOSH) && (_version == 3))) {
|
||||
// This is the for the Mac version of Indy3/Loom
|
||||
// This is NOT for the Mac version of Indy3/Loom
|
||||
VAR(VAR_DEBUGMODE) = _debugMode;
|
||||
}
|
||||
}
|
||||
@ -1272,7 +1272,7 @@ int ScummEngine::scummLoop(int delta) {
|
||||
VAR(VAR_MOUSE_X) = _mouse.x;
|
||||
VAR(VAR_MOUSE_Y) = _mouse.y;
|
||||
if ((_features & GF_MACINTOSH) && (_version == 3)) {
|
||||
// This is the for the Mac version of Indy3/Loom
|
||||
// This is for the Mac version of Indy3/Loom
|
||||
VAR(VAR_DEBUGMODE) = _debugMode;
|
||||
}
|
||||
}
|
||||
|
@ -487,7 +487,7 @@ SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst)
|
||||
warning ("MIDI Player init failed: \"%s\"", midi.getErrorName (ret));
|
||||
midi.set_volume(ConfMan.getInt("music_volume"));
|
||||
|
||||
_debugMode = detector->_debugMode;
|
||||
_debugMode = ConfMan.hasKey("debuglevel");
|
||||
_debugLevel = ConfMan.getInt("debuglevel");
|
||||
_language = GameDetector::parseLanguage(ConfMan.get("language"));
|
||||
_noSubtitles = ConfMan.getBool("nosubtitles");
|
||||
|
@ -106,7 +106,7 @@ SkyEngine::SkyEngine(GameDetector *detector, OSystem *syst)
|
||||
|
||||
_mixer->setVolume(ConfMan.getInt("sfx_volume")); //unnecessary?
|
||||
|
||||
_debugMode = detector->_debugMode;
|
||||
_debugMode = ConfMan.hasKey("debuglevel");
|
||||
_debugLevel = ConfMan.getInt("debuglevel");
|
||||
_detector = detector;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user