diff options
Diffstat (limited to 'sky/sky.cpp')
-rw-r--r-- | sky/sky.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sky/sky.cpp b/sky/sky.cpp index 072c958525..e43a6bca29 100644 --- a/sky/sky.cpp +++ b/sky/sky.cpp @@ -116,6 +116,8 @@ SystemVars SkyEngine::_systemVars = {0, 0, 0, 0, 4316, 0, 0, false, false }; SkyEngine::SkyEngine(GameDetector *detector, OSystem *syst) : Engine(syst), _fastMode(0) { + _walkthroughDialog->setGameName(detector->_game.name); + _walkthroughDialog->create(); } SkyEngine::~SkyEngine() { @@ -127,6 +129,8 @@ SkyEngine::~SkyEngine() { delete _skyMouse; delete _skyScreen; delete _debugger; + + _walkthroughDialog->destroy(); } void SkyEngine::errorString(const char *buf1, char *buf2) { @@ -461,6 +465,9 @@ void SkyEngine::delay(uint amount) { if (event.kbd.keycode == 'd') { _debugger->attach(); } + if (event.kbd.keycode == 'w') { + _walkthroughDialog->runModal(); + } } // Make sure backspace works right (this fixes a small issue on OS X) |