diff options
author | Bastien Bouclet | 2017-01-28 14:55:24 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-03 08:50:10 +0200 |
commit | 7a9b91dfcd786502f173e56b1d19e9d42acce5f3 (patch) | |
tree | 750ab3bca800423bf3684595eadabb08c86c2243 /engines/mohawk/riven.cpp | |
parent | 286cdef658dbd18a6bb3b71fdfa9b133efb6a8e4 (diff) | |
download | scummvm-rg350-7a9b91dfcd786502f173e56b1d19e9d42acce5f3.tar.gz scummvm-rg350-7a9b91dfcd786502f173e56b1d19e9d42acce5f3.tar.bz2 scummvm-rg350-7a9b91dfcd786502f173e56b1d19e9d42acce5f3.zip |
MOHAWK: Improve script debug output
Diffstat (limited to 'engines/mohawk/riven.cpp')
-rw-r--r-- | engines/mohawk/riven.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp index e1581b0cb0..116b1e8688 100644 --- a/engines/mohawk/riven.cpp +++ b/engines/mohawk/riven.cpp @@ -21,6 +21,7 @@ */ #include "common/config-manager.h" +#include "common/debug-channels.h" #include "common/events.h" #include "common/keyboard.h" #include "common/translation.h" @@ -67,6 +68,9 @@ MohawkEngine_Riven::MohawkEngine_Riven(OSystem *syst, const MohawkGameDescriptio _optionsDialog = nullptr; _card = nullptr; _inventory = nullptr; + + DebugMan.addDebugChannel(kRivenDebugScript, "Script", "Track Script Execution"); + removeTimer(); // NOTE: We can never really support CD swapping. All of the music files @@ -95,6 +99,8 @@ MohawkEngine_Riven::~MohawkEngine_Riven() { delete _optionsDialog; delete _inventory; delete _rnd; + + DebugMan.clearAllDebugChannels(); } GUI::Debugger *MohawkEngine_Riven::getDebugger() { |