mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
MOHAWK: add changePage Living Books debug command
svn-id: r54688
This commit is contained in:
parent
26b372cfd2
commit
90b61c0bd4
@ -652,6 +652,7 @@ LivingBooksConsole::LivingBooksConsole(MohawkEngine_LivingBooks *vm) : GUI::Debu
|
|||||||
DCmd_Register("playSound", WRAP_METHOD(LivingBooksConsole, Cmd_PlaySound));
|
DCmd_Register("playSound", WRAP_METHOD(LivingBooksConsole, Cmd_PlaySound));
|
||||||
DCmd_Register("stopSound", WRAP_METHOD(LivingBooksConsole, Cmd_StopSound));
|
DCmd_Register("stopSound", WRAP_METHOD(LivingBooksConsole, Cmd_StopSound));
|
||||||
DCmd_Register("drawImage", WRAP_METHOD(LivingBooksConsole, Cmd_DrawImage));
|
DCmd_Register("drawImage", WRAP_METHOD(LivingBooksConsole, Cmd_DrawImage));
|
||||||
|
DCmd_Register("changePage", WRAP_METHOD(LivingBooksConsole, Cmd_ChangePage));
|
||||||
}
|
}
|
||||||
|
|
||||||
LivingBooksConsole::~LivingBooksConsole() {
|
LivingBooksConsole::~LivingBooksConsole() {
|
||||||
@ -694,4 +695,16 @@ bool LivingBooksConsole::Cmd_DrawImage(int argc, const char **argv) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool LivingBooksConsole::Cmd_ChangePage(int argc, const char **argv) {
|
||||||
|
if (argc == 1) {
|
||||||
|
DebugPrintf("Usage: changePage <page>\n");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_vm->tryLoadPageStart(_vm->getCurMode(), atoi(argv[1])))
|
||||||
|
return false;
|
||||||
|
DebugPrintf("no such page %d\n", atoi(argv[1]));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
} // End of namespace Mohawk
|
} // End of namespace Mohawk
|
||||||
|
@ -107,6 +107,7 @@ private:
|
|||||||
bool Cmd_PlaySound(int argc, const char **argv);
|
bool Cmd_PlaySound(int argc, const char **argv);
|
||||||
bool Cmd_StopSound(int argc, const char **argv);
|
bool Cmd_StopSound(int argc, const char **argv);
|
||||||
bool Cmd_DrawImage(int argc, const char **argv);
|
bool Cmd_DrawImage(int argc, const char **argv);
|
||||||
|
bool Cmd_ChangePage(int argc, const char **argv);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End of namespace Mohawk
|
} // End of namespace Mohawk
|
||||||
|
Loading…
Reference in New Issue
Block a user