diff options
author | Filippos Karapetis | 2014-05-15 09:46:29 +0300 |
---|---|---|
committer | Filippos Karapetis | 2014-05-15 09:48:32 +0300 |
commit | 9fcebd296a1828831e052fbd55181363e252bbaa (patch) | |
tree | abc6cd9615e527ddf0503131a33f1563724b9272 /engines/mads/debugger.cpp | |
parent | 95e144a3142fcab0c11b5e0d2452a899a06750c9 (diff) | |
download | scummvm-rg350-9fcebd296a1828831e052fbd55181363e252bbaa.tar.gz scummvm-rg350-9fcebd296a1828831e052fbd55181363e252bbaa.tar.bz2 scummvm-rg350-9fcebd296a1828831e052fbd55181363e252bbaa.zip |
MADS: Some bugfixes to the debug console
Diffstat (limited to 'engines/mads/debugger.cpp')
-rw-r--r-- | engines/mads/debugger.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/mads/debugger.cpp b/engines/mads/debugger.cpp index 3594c83d36..e3ddf02a5a 100644 --- a/engines/mads/debugger.cpp +++ b/engines/mads/debugger.cpp @@ -30,7 +30,7 @@ Debugger::Debugger(MADSEngine *vm) : GUI::Debugger(), _vm(vm) { _showMousePos = false; DCmd_Register("continue", WRAP_METHOD(Debugger, Cmd_Exit)); - DCmd_Register("scene", WRAP_METHOD(Debugger, Cmd_Mouse)); + DCmd_Register("mouse", WRAP_METHOD(Debugger, Cmd_Mouse)); DCmd_Register("scene", WRAP_METHOD(Debugger, Cmd_LoadScene)); DCmd_Register("show_hotspots", WRAP_METHOD(Debugger, Cmd_ShowHotSpots)); DCmd_Register("list_hotspots", WRAP_METHOD(Debugger, Cmd_ListHotSpots)); @@ -60,7 +60,7 @@ static int strToInt(const char *s) { bool Debugger::Cmd_Mouse(int argc, const char **argv) { if (argc < 2) { - DebugPrintf("Format: mouse [ on | off ]\n"); + DebugPrintf("Usage: %s [ on | off ]\n", argv[0]); } else { _showMousePos = strcmp(argv[1], "on") == 0; } @@ -178,6 +178,7 @@ bool Debugger::Cmd_DumpFile(int argc, const char **argv) { inFile.read(data, inFile.size()); outFile.write(data, inFile.size()); + outFile.flush(); delete[] data; inFile.close(); |