From 20e9cf6f20dde6aed31b83698940786a783c2125 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Fri, 19 Nov 2004 19:50:22 +0000 Subject: added walkthrough svn-id: r15835 --- simon/simon.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'simon') diff --git a/simon/simon.cpp b/simon/simon.cpp index b7519e8ca4..8bfdaf7f1e 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -718,6 +718,9 @@ SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst) // FIXME Use auto dirty rects cleanup code to reduce CPU usage g_system->setFeatureState(OSystem::kFeatureAutoComputeDirtyRects, true); + + _walkthroughDialog->setGameName(detector->_game.name); + _walkthroughDialog->create(); } SimonEngine::~SimonEngine() { @@ -729,6 +732,8 @@ SimonEngine::~SimonEngine() { delete _sound; delete _debugger; + + _walkthroughDialog->destroy(); } void SimonEngine::errorString(const char *buf1, char *buf2) { @@ -4848,6 +4853,8 @@ void SimonEngine::delay(uint amount) { _aboutDialog->runModal(); } else if (event.kbd.keycode == 'f') _fast_mode ^= 1; + else if (event.kbd.keycode == 'w') + _walkthroughDialog->runModal(); else if (event.kbd.keycode == 'd') _debugger->attach(); } -- cgit v1.2.3