diff options
Diffstat (limited to 'engines/mads/debugger.cpp')
-rw-r--r-- | engines/mads/debugger.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/mads/debugger.cpp b/engines/mads/debugger.cpp index ceaeeaa5dd..34b12c1680 100644 --- a/engines/mads/debugger.cpp +++ b/engines/mads/debugger.cpp @@ -26,6 +26,8 @@ namespace MADS { Debugger::Debugger(MADSEngine *vm) : GUI::Debugger(), _vm(vm) { + _showMousePos = false; + DCmd_Register("continue", WRAP_METHOD(Debugger, Cmd_Exit)); } /* @@ -46,4 +48,14 @@ static int strToInt(const char *s) { } */ +bool Debugger::Cmd_Mouse(int argc, const char **argv) { + if (argc < 2) { + DebugPrintf("Format: mouse [ on | off ]\n"); + } else { + _showMousePos = strcmp(argv[1], "on") == 0; + } + + return true; +} + } // End of namespace MADS |