diff options
author | D G Turner | 2014-05-11 12:27:38 +0100 |
---|---|---|
committer | D G Turner | 2014-05-11 12:27:38 +0100 |
commit | 6856b09d5a0024397895984aeb8d79d4a77e9111 (patch) | |
tree | 357f2b701924e386798c8b15beac5dc77a7a7831 /engines/agos/agos.cpp | |
parent | 0844ba0ddeb9b3560660d275cc999b14055e285c (diff) | |
download | scummvm-rg350-6856b09d5a0024397895984aeb8d79d4a77e9111.tar.gz scummvm-rg350-6856b09d5a0024397895984aeb8d79d4a77e9111.tar.bz2 scummvm-rg350-6856b09d5a0024397895984aeb8d79d4a77e9111.zip |
AGOS: Switch opcode debugging to a debug flag, rather than level 2 hack.
This is now set by --debugflags=opcode rather than -d 2, though it will
still require a debug level greater than 0.
Diffstat (limited to 'engines/agos/agos.cpp')
-rw-r--r-- | engines/agos/agos.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/agos/agos.cpp b/engines/agos/agos.cpp index 2fc89771d3..8754b11065 100644 --- a/engines/agos/agos.cpp +++ b/engines/agos/agos.cpp @@ -21,6 +21,7 @@ */ #include "common/config-manager.h" +#include "common/debug-channels.h" #include "common/file.h" #include "common/fs.h" #include "common/textconsole.h" @@ -144,6 +145,8 @@ AGOSEngine_Elvira1::AGOSEngine_Elvira1(OSystem *system, const AGOSGameDescriptio AGOSEngine::AGOSEngine(OSystem *system, const AGOSGameDescription *gd) : Engine(system), _rnd("agos"), _gameDescription(gd) { + DebugMan.addDebugChannel(kDebugOpcode, "opcode", "Opcode debug level"); + _vcPtr = 0; _vcGetOutOfCode = 0; _gameOffsetsPtr = 0; @@ -244,7 +247,6 @@ AGOSEngine::AGOSEngine(OSystem *system, const AGOSGameDescription *gd) _backFlag = false; _dumpScripts = false; - _dumpOpcodes = false; _dumpVgaScripts = false; _dumpVgaOpcodes = false; _dumpImages = false; @@ -676,7 +678,6 @@ Common::Error AGOSEngine::init() { // TODO: Use special debug levels instead of the following hack. switch (gDebugLevel) { - case 2: _dumpOpcodes = true; break; case 3: _dumpVgaOpcodes = true; break; case 4: _dumpScripts = true; break; case 5: _dumpVgaScripts = true; break; |