aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorAlyssa Milburn2011-02-01 12:57:34 +0000
committerAlyssa Milburn2011-02-01 12:57:34 +0000
commit4d094feb3a4b98d8e82cf8b613ef49b1db99af1b (patch)
tree70df73cdaa63bc62794f4fed77a81ed4d9d393a3 /engines
parent1ac0680a77df8ee59ba2435362bb620ac2bf6e97 (diff)
downloadscummvm-rg350-4d094feb3a4b98d8e82cf8b613ef49b1db99af1b.tar.gz
scummvm-rg350-4d094feb3a4b98d8e82cf8b613ef49b1db99af1b.tar.bz2
scummvm-rg350-4d094feb3a4b98d8e82cf8b613ef49b1db99af1b.zip
MOHAWK: Allow mode changes from LB's debug console.
svn-id: r55706
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/console.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mohawk/console.cpp b/engines/mohawk/console.cpp
index a59e9dfb55..64e403092a 100644
--- a/engines/mohawk/console.cpp
+++ b/engines/mohawk/console.cpp
@@ -694,11 +694,11 @@ bool LivingBooksConsole::Cmd_DrawImage(int argc, const char **argv) {
bool LivingBooksConsole::Cmd_ChangePage(int argc, const char **argv) {
if (argc == 1) {
- DebugPrintf("Usage: changePage <page>\n");
+ DebugPrintf("Usage: changePage <page> [<mode>]\n");
return true;
}
- if (_vm->tryLoadPageStart(_vm->getCurMode(), atoi(argv[1])))
+ if (_vm->tryLoadPageStart(argc == 2 ? _vm->getCurMode() : (LBMode)atoi(argv[2]), atoi(argv[1])))
return false;
DebugPrintf("no such page %d\n", atoi(argv[1]));
return true;