diff options
author | Paul Gilbert | 2017-08-07 21:10:24 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-08-07 21:10:24 -0400 |
commit | aef786fcc3b93670ce980f37d44fea48955d9d3a (patch) | |
tree | fc9bba6f5123b20730eb3188660a1f5a3f15d9bc /engines/titanic/main_game_window.cpp | |
parent | e685973cac056f8df0b4b02ed7bd143e05767a0c (diff) | |
download | scummvm-rg350-aef786fcc3b93670ce980f37d44fea48955d9d3a.tar.gz scummvm-rg350-aef786fcc3b93670ce980f37d44fea48955d9d3a.tar.bz2 scummvm-rg350-aef786fcc3b93670ce980f37d44fea48955d9d3a.zip |
TITANIC: Hook in the original game's secret cheat room
You can either use a special Ctrl-C key combination, or use the
'cheat' command in the debugger
Diffstat (limited to 'engines/titanic/main_game_window.cpp')
-rw-r--r-- | engines/titanic/main_game_window.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/titanic/main_game_window.cpp b/engines/titanic/main_game_window.cpp index 559e186f70..53539d84a5 100644 --- a/engines/titanic/main_game_window.cpp +++ b/engines/titanic/main_game_window.cpp @@ -333,10 +333,15 @@ void CMainGameWindow::keyDown(Common::KeyState keyState) { // Attach to the debugger _vm->_debugger->attach(); _vm->_debugger->onFrame(); - } - if (_inputAllowed) + } else if (keyState.keycode == Common::KEYCODE_c && (keyState.flags & Common::KBD_CTRL)) { + // Cheat action + CViewItem *newView = _project->parseView("Cheat Room.Node 1.Cheat Rooms View"); + _gameManager->_gameState.changeView(newView, nullptr); + + } else if (_inputAllowed) { _gameManager->_inputTranslator.keyDown(keyState); + } } bool CMainGameWindow::isMouseControlEnabled() const { |