diff options
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r-- | engines/sci/console.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index 6a6ad672e7..7a86236531 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -88,6 +88,7 @@ Console::Console(SciEngine *vm) : GUI::Debugger() { DCmd_Register("man", WRAP_METHOD(Console, cmdMan)); DCmd_Register("hexdump", WRAP_METHOD(Console, cmdHexDump)); DCmd_Register("dissect_script", WRAP_METHOD(Console, cmdDissectScript)); + DCmd_Register("room", WRAP_METHOD(Console, cmdRoomNumber)); } Console::~Console() { @@ -323,4 +324,10 @@ bool Console::cmdDissectScript(int argc, const char **argv) { return true; } +bool Console::cmdRoomNumber(int argc, const char **argv) { + DebugPrintf("Current room number is %d\n", g_EngineState->currentRoomNumber()); + + return true; +} + } // End of namespace Sci |