diff options
author | Willem Jan Palenstijn | 2014-10-10 13:59:47 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2014-10-10 14:02:33 +0200 |
commit | bdc20cf1c992622d1767ec25ad06ffa15b6fc791 (patch) | |
tree | b3449596bb7283ff040617353f83e4aca09b04be /engines/prince | |
parent | bb8f66c2437a0f3a704ddc84e08dab7551b08253 (diff) | |
download | scummvm-rg350-bdc20cf1c992622d1767ec25ad06ffa15b6fc791.tar.gz scummvm-rg350-bdc20cf1c992622d1767ec25ad06ffa15b6fc791.tar.bz2 scummvm-rg350-bdc20cf1c992622d1767ec25ad06ffa15b6fc791.zip |
PRINCE: Fix a few compile errors
Diffstat (limited to 'engines/prince')
-rw-r--r-- | engines/prince/debugger.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/engines/prince/debugger.cpp b/engines/prince/debugger.cpp index 481ea695f5..fc216e0cfb 100644 --- a/engines/prince/debugger.cpp +++ b/engines/prince/debugger.cpp @@ -28,15 +28,15 @@ namespace Prince { Debugger::Debugger(PrinceEngine *vm, InterpreterFlags *flags) : GUI::Debugger(), _vm(vm), _locationNr(0), _flags(flags) { - DCmd_Register("continue", WRAP_METHOD(Debugger, Cmd_Exit)); - DCmd_Register("level", WRAP_METHOD(Debugger, Cmd_DebugLevel)); - DCmd_Register("setflag", WRAP_METHOD(Debugger, Cmd_SetFlag)); - DCmd_Register("getflag", WRAP_METHOD(Debugger, Cmd_GetFlag)); - DCmd_Register("clearflag", WRAP_METHOD(Debugger, Cmd_ClearFlag)); - DCmd_Register("viewflc", WRAP_METHOD(Debugger, Cmd_ViewFlc)); - DCmd_Register("initroom", WRAP_METHOD(Debugger, Cmd_InitRoom)); - DCmd_Register("changecursor", WRAP_METHOD(Debugger, Cmd_ChangeCursor)); - DCmd_Register("additem", WRAP_METHOD(Debugger, Cmd_AddItem)); + registerCmd("continue", WRAP_METHOD(Debugger, cmdExit)); + registerCmd("level", WRAP_METHOD(Debugger, Cmd_DebugLevel)); + registerCmd("setflag", WRAP_METHOD(Debugger, Cmd_SetFlag)); + registerCmd("getflag", WRAP_METHOD(Debugger, Cmd_GetFlag)); + registerCmd("clearflag", WRAP_METHOD(Debugger, Cmd_ClearFlag)); + registerCmd("viewflc", WRAP_METHOD(Debugger, Cmd_ViewFlc)); + registerCmd("initroom", WRAP_METHOD(Debugger, Cmd_InitRoom)); + registerCmd("changecursor", WRAP_METHOD(Debugger, Cmd_ChangeCursor)); + registerCmd("additem", WRAP_METHOD(Debugger, Cmd_AddItem)); } static int strToInt(const char *s) { @@ -57,15 +57,15 @@ static int strToInt(const char *s) { bool Debugger::Cmd_DebugLevel(int argc, const char **argv) { if (argc == 1) { - DebugPrintf("Debugging is currently set at level %d\n", gDebugLevel); + debugPrintf("Debugging is currently set at level %d\n", gDebugLevel); } else { // set level gDebugLevel = atoi(argv[1]); if (0 <= gDebugLevel && gDebugLevel < 11) { - DebugPrintf("Debug level set to level %d\n", gDebugLevel); + debugPrintf("Debug level set to level %d\n", gDebugLevel); } else if (gDebugLevel < 0) { - DebugPrintf("Debugging is now disabled\n"); + debugPrintf("Debugging is now disabled\n"); } else - DebugPrintf("Not a valid debug level (0 - 10)\n"); + debugPrintf("Not a valid debug level (0 - 10)\n"); } return true; @@ -77,7 +77,7 @@ bool Debugger::Cmd_DebugLevel(int argc, const char **argv) { bool Debugger::Cmd_SetFlag(int argc, const char **argv) { // Check for a flag to set if (argc != 3) { - DebugPrintf("Usage: %s <flag number> <value>\n", argv[0]); + debugPrintf("Usage: %s <flag number> <value>\n", argv[0]); return true; } @@ -93,12 +93,12 @@ bool Debugger::Cmd_SetFlag(int argc, const char **argv) { bool Debugger::Cmd_GetFlag(int argc, const char **argv) { // Check for an flag to display if (argc != 2) { - DebugPrintf("Usage: %s <flag number>\n", argv[0]); + debugPrintf("Usage: %s <flag number>\n", argv[0]); return true; } int flagNum = strToInt(argv[1]); - DebugPrintf("Value: %d\n", _flags->getFlagValue((Flags::Id)flagNum)); + debugPrintf("Value: %d\n", _flags->getFlagValue((Flags::Id)flagNum)); return true; } @@ -108,7 +108,7 @@ bool Debugger::Cmd_GetFlag(int argc, const char **argv) { bool Debugger::Cmd_ClearFlag(int argc, const char **argv) { // Check for a flag to clear if (argc != 2) { - DebugPrintf("Usage: %s <flag number>\n", argv[0]); + debugPrintf("Usage: %s <flag number>\n", argv[0]); return true; } @@ -123,7 +123,7 @@ bool Debugger::Cmd_ClearFlag(int argc, const char **argv) { bool Debugger::Cmd_ViewFlc(int argc, const char **argv) { // Check for a flag to clear if (argc != 2) { - DebugPrintf("Usage: %s <anim number>\n", argv[0]); + debugPrintf("Usage: %s <anim number>\n", argv[0]); return true; } @@ -135,7 +135,7 @@ bool Debugger::Cmd_ViewFlc(int argc, const char **argv) { bool Debugger::Cmd_InitRoom(int argc, const char **argv) { // Check for a flag to clear if (argc != 2) { - DebugPrintf("Usage: %s <anim number>\n", argv[0]); + debugPrintf("Usage: %s <anim number>\n", argv[0]); return true; } @@ -146,7 +146,7 @@ bool Debugger::Cmd_InitRoom(int argc, const char **argv) { bool Debugger::Cmd_ChangeCursor(int argc, const char **argv) { // Check for a flag to clear if (argc != 2) { - DebugPrintf("Usage: %s <curId>\n", argv[0]); + debugPrintf("Usage: %s <curId>\n", argv[0]); return true; } @@ -157,7 +157,7 @@ bool Debugger::Cmd_ChangeCursor(int argc, const char **argv) { bool Debugger::Cmd_AddItem(int argc, const char **argv) { if (argc != 2) { - DebugPrintf("Usage: %s <itemId>\n", argv[0]); + debugPrintf("Usage: %s <itemId>\n", argv[0]); return true; } if (!strcmp(argv[1], "map")) { |