diff options
author | Eugene Sandulenko | 2010-06-15 10:18:34 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-06-15 10:18:34 +0000 |
commit | 2ccb5bb0251d801ef8b2fc15accbf7d421990afa (patch) | |
tree | 58ca75fca0b7e8f51fc350f6dae293cc64823537 /engines/drascula/drascula.cpp | |
parent | f992721361d182223f1f551fe8bbfd030a27bd1f (diff) | |
download | scummvm-rg350-2ccb5bb0251d801ef8b2fc15accbf7d421990afa.tar.gz scummvm-rg350-2ccb5bb0251d801ef8b2fc15accbf7d421990afa.tar.bz2 scummvm-rg350-2ccb5bb0251d801ef8b2fc15accbf7d421990afa.zip |
Drascula: Added debug console. Implemented a (buggy) room comand.
svn-id: r49703
Diffstat (limited to 'engines/drascula/drascula.cpp')
-rw-r--r-- | engines/drascula/drascula.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp index 2c3ca63600..b16182e3e2 100644 --- a/engines/drascula/drascula.cpp +++ b/engines/drascula/drascula.cpp @@ -38,6 +38,7 @@ #include "sound/mixer.h" #include "drascula/drascula.h" +#include "drascula/console.h" namespace Drascula { @@ -173,6 +174,8 @@ Common::Error DrasculaEngine::run() { _lang = kEnglish; } + _console = new Console(this); + if (!loadDrasculaDat()) return Common::kUnknownError; @@ -594,6 +597,9 @@ bool DrasculaEngine::runCurrentChapter() { } else if (key == Common::KEYCODE_ESCAPE) { if (!confirmExit()) return false; + } else if (key == Common::KEYCODE_TILDE || key == Common::KEYCODE_BACKQUOTE) { + _console->attach(); + _console->onFrame(); } else if (currentChapter == 6 && key == Common::KEYCODE_0 && roomNumber == 61) { loadPic("alcbar.alg", bgSurface, 255); } |