diff options
author | Jonathan Gray | 2005-07-16 17:10:50 +0000 |
---|---|---|
committer | Jonathan Gray | 2005-07-16 17:10:50 +0000 |
commit | 545837b9031b7feea4af23f03cabf4e86c349859 (patch) | |
tree | e83ffe65cacf05c1bdcbd2f859fa6a32d6b9ba1d /scumm | |
parent | 3d9d96e8730087101c5ac73c86247e6fb493832c (diff) | |
download | scummvm-rg350-545837b9031b7feea4af23f03cabf4e86c349859.tar.gz scummvm-rg350-545837b9031b7feea4af23f03cabf4e86c349859.tar.bz2 scummvm-rg350-545837b9031b7feea4af23f03cabf4e86c349859.zip |
Set SCUMM debug mode to be on if a boot param is specified.
This avoids having to use -d0 for scumm titles and alows
boot params from config files to work better.
svn-id: r18548
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/scumm.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp index 3d852a9f8f..1be930815b 100644 --- a/scumm/scumm.cpp +++ b/scumm/scumm.cpp @@ -1147,6 +1147,9 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst, const ScummGameS _debugMode = (gDebugLevel >= 0); _dumpScripts = detector->_dumpScripts; _bootParam = ConfMan.getInt("boot_param"); + // Boot params often need debugging switched on to work + if (_bootParam) + _debugMode = true; // Allow the user to override the game name with a custom string. // This allows some game versions to work which use filenames |