aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/debugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/debugger.cpp')
-rw-r--r--engines/titanic/debugger.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/titanic/debugger.cpp b/engines/titanic/debugger.cpp
index 5f28aedeb7..ec38291c65 100644
--- a/engines/titanic/debugger.cpp
+++ b/engines/titanic/debugger.cpp
@@ -37,6 +37,7 @@ Debugger::Debugger(TitanicEngine *vm) : GUI::Debugger(), _vm(vm) {
registerCmd("item", WRAP_METHOD(Debugger, cmdItem));
registerCmd("movie", WRAP_METHOD(Debugger, cmdMovie));
registerCmd("sound", WRAP_METHOD(Debugger, cmdSound));
+ registerCmd("cheat", WRAP_METHOD(Debugger, cmdCheat));
}
int Debugger::strToInt(const char *s) {
@@ -330,4 +331,13 @@ bool Debugger::cmdSound(int argc, const char **argv) {
}
}
+bool Debugger::cmdCheat(int argc, const char **argv) {
+ CGameManager *gameManager = g_vm->_window->_gameManager;
+ CProjectItem *project = g_vm->_window->_project;
+
+ CViewItem *newView = project->parseView("Cheat Room.Node 1.Cheat Rooms View");
+ gameManager->_gameState.changeView(newView, nullptr);
+ return false;
+}
+
} // End of namespace Titanic