diff options
author | Johannes Schickel | 2014-05-27 02:04:07 +0200 |
---|---|---|
committer | Johannes Schickel | 2014-05-27 02:04:07 +0200 |
commit | daa8d57a866e2866369e432cf1d624179edc8875 (patch) | |
tree | 0313eab9efb85357bb78310d7fcd5615dc20d432 /engines/queen | |
parent | d0f5184edd101e76dd9ad96a2e68c5cc69a662a7 (diff) | |
download | scummvm-rg350-daa8d57a866e2866369e432cf1d624179edc8875.tar.gz scummvm-rg350-daa8d57a866e2866369e432cf1d624179edc8875.tar.bz2 scummvm-rg350-daa8d57a866e2866369e432cf1d624179edc8875.zip |
ALL: Rename Debugger::DebugPrintf to Debugger::debugPrintf.
Diffstat (limited to 'engines/queen')
-rw-r--r-- | engines/queen/debug.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/engines/queen/debug.cpp b/engines/queen/debug.cpp index 3706806ac2..20638589e1 100644 --- a/engines/queen/debug.cpp +++ b/engines/queen/debug.cpp @@ -73,14 +73,14 @@ bool Debugger::Cmd_Asm(int argc, const char **argv) { _vm->logic()->executeSpecialMove(sm); return false; } else { - DebugPrintf("Usage: %s smnum\n", argv[0]); + debugPrintf("Usage: %s smnum\n", argv[0]); } return true; } bool Debugger::Cmd_Areas(int argc, const char **argv) { _flags ^= DF_DRAW_AREAS; - DebugPrintf("Room areas display %s\n", (_flags & DF_DRAW_AREAS) != 0 ? "on" : "off"); + debugPrintf("Room areas display %s\n", (_flags & DF_DRAW_AREAS) != 0 ? "on" : "off"); return true; } @@ -88,36 +88,36 @@ bool Debugger::Cmd_Bob(int argc, const char **argv) { if (argc >= 3 && isNumeric(argv[1])) { int bobNum = atoi(argv[1]); if (bobNum >= Graphics::MAX_BOBS_NUMBER) { - DebugPrintf("Bob %d is out of range (range: 0 - %d)\n", bobNum, Graphics::MAX_BOBS_NUMBER); + debugPrintf("Bob %d is out of range (range: 0 - %d)\n", bobNum, Graphics::MAX_BOBS_NUMBER); } else { int param = 0; if (argc > 3 && isNumeric(argv[3])) { param = atoi(argv[3]); } else { - DebugPrintf("Invalid parameter for bob command '%s'\n", argv[2]); + debugPrintf("Invalid parameter for bob command '%s'\n", argv[2]); } BobSlot *bob = _vm->graphics()->bob(bobNum); if (!strcmp(argv[2], "toggle")) { bob->active = !bob->active; - DebugPrintf("bob[%d].active = %d\n", bobNum, bob->active); + debugPrintf("bob[%d].active = %d\n", bobNum, bob->active); } else if (!strcmp(argv[2], "x")) { bob->x = param; - DebugPrintf("bob[%d].x = %d\n", bobNum, bob->x); + debugPrintf("bob[%d].x = %d\n", bobNum, bob->x); } else if (!strcmp(argv[2], "y")) { bob->y = param; - DebugPrintf("bob[%d].y = %d\n", bobNum, bob->y); + debugPrintf("bob[%d].y = %d\n", bobNum, bob->y); } else if (!strcmp(argv[2], "frame")) { bob->frameNum = param; - DebugPrintf("bob[%d].frameNum = %d\n", bobNum, bob->frameNum); + debugPrintf("bob[%d].frameNum = %d\n", bobNum, bob->frameNum); } else if (!strcmp(argv[2], "speed")) { bob->speed = param; - DebugPrintf("bob[%d].speed = %d\n", bobNum, bob->speed); + debugPrintf("bob[%d].speed = %d\n", bobNum, bob->speed); } else { - DebugPrintf("Unknown bob command '%s'\n", argv[2]); + debugPrintf("Unknown bob command '%s'\n", argv[2]); } } } else { - DebugPrintf("Usage: %s bobnum command parameter\n", argv[0]); + debugPrintf("Usage: %s bobnum command parameter\n", argv[0]); } return true; } @@ -126,26 +126,26 @@ bool Debugger::Cmd_GameState(int argc, const char **argv) { uint16 slot; if ((argc == 2 || argc == 3) && isNumeric(argv[1])) { slot = atoi(argv[1]); - DebugPrintf("GAMESTATE[%d] ", slot); - DebugPrintf("%s %d\n", (argc == 2) ? "is" : "was", _vm->logic()->gameState(slot)); + debugPrintf("GAMESTATE[%d] ", slot); + debugPrintf("%s %d\n", (argc == 2) ? "is" : "was", _vm->logic()->gameState(slot)); if (argc == 3) { if (isNumeric(argv[1])) { _vm->logic()->gameState(slot, atoi(argv[2])); - DebugPrintf("now %d\n", _vm->logic()->gameState(slot)); + debugPrintf("now %d\n", _vm->logic()->gameState(slot)); } else { - DebugPrintf("Usage: %s slotnum <value>\n", argv[0]); + debugPrintf("Usage: %s slotnum <value>\n", argv[0]); } } } else { - DebugPrintf("Usage: %s slotnum <value>\n", argv[0]); + debugPrintf("Usage: %s slotnum <value>\n", argv[0]); } return true; } bool Debugger::Cmd_Info(int argc, const char **argv) { - DebugPrintf("Version: %s\n", _vm->resource()->getJASVersion()); - DebugPrintf("Audio compression: %d\n", _vm->resource()->getCompression()); + debugPrintf("Version: %s\n", _vm->resource()->getJASVersion()); + debugPrintf("Audio compression: %d\n", _vm->resource()->getCompression()); return true; } @@ -156,24 +156,24 @@ bool Debugger::Cmd_Items(int argc, const char **argv) { item->name = ABS(item->name); ++item; } - DebugPrintf("Enabled all inventory items\n"); + debugPrintf("Enabled all inventory items\n"); return true; } bool Debugger::Cmd_PrintBobs(int argc, const char**argv) { int i; BobSlot *bob = _vm->graphics()->bob(0); - DebugPrintf("+------------------------------------+\n"); - DebugPrintf("|# | x| y|f|scl|frm|a|m|spd| ex| ey|\n"); - DebugPrintf("+--+---+---+-+---+---+-+-+---+---+---+\n"); + debugPrintf("+------------------------------------+\n"); + debugPrintf("|# | x| y|f|scl|frm|a|m|spd| ex| ey|\n"); + debugPrintf("+--+---+---+-+---+---+-+-+---+---+---+\n"); for (i = 0; i < Graphics::MAX_BOBS_NUMBER; ++i, ++bob) { if (bob->active) { - DebugPrintf("|%2d|%3d|%3d|%1d|%3d|%3d|%1d|%1d|%3d|%3d|%3d|\n", + debugPrintf("|%2d|%3d|%3d|%1d|%3d|%3d|%1d|%1d|%3d|%3d|%3d|\n", i, bob->x, bob->y, bob->xflip, bob->scale, bob->frameNum, bob->animating, bob->moving, bob->speed, bob->endx, bob->endy); } } - DebugPrintf("+--------------------------------+\n"); + debugPrintf("+--------------------------------+\n"); return true; } @@ -185,7 +185,7 @@ bool Debugger::Cmd_Room(int argc, const char **argv) { _vm->logic()->entryObj(_vm->logic()->roomData(roomNum) + 1); return false; } else { - DebugPrintf("Current room: %d (%s), use '%s <roomnum>' to switch\n", + debugPrintf("Current room: %d (%s), use '%s <roomnum>' to switch\n", _vm->logic()->currentRoom(), _vm->logic()->roomName(_vm->logic()->currentRoom()), argv[0]); @@ -197,9 +197,9 @@ bool Debugger::Cmd_Song(int argc, const char **argv) { if (argc == 2 && isNumeric(argv[1])) { int16 songNum = atoi(argv[1]); _vm->sound()->playSong(songNum); - DebugPrintf("Playing song %d\n", songNum); + debugPrintf("Playing song %d\n", songNum); } else { - DebugPrintf("Usage: %s songnum\n", argv[0]); + debugPrintf("Usage: %s songnum\n", argv[0]); } return true; } |