aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorPaweł Kołodziejski2004-11-19 19:50:22 +0000
committerPaweł Kołodziejski2004-11-19 19:50:22 +0000
commit20e9cf6f20dde6aed31b83698940786a783c2125 (patch)
tree51be5f26a2a58c008c4fa8a11f4941b1ed75a3e9 /sword2
parentc4a8b3c8b54022664fe231253f8314f0557a958f (diff)
downloadscummvm-rg350-20e9cf6f20dde6aed31b83698940786a783c2125.tar.gz
scummvm-rg350-20e9cf6f20dde6aed31b83698940786a783c2125.tar.bz2
scummvm-rg350-20e9cf6f20dde6aed31b83698940786a783c2125.zip
added walkthrough
svn-id: r15835
Diffstat (limited to 'sword2')
-rw-r--r--sword2/sword2.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp
index 732b99b743..9d4857087b 100644
--- a/sword2/sword2.cpp
+++ b/sword2/sword2.cpp
@@ -180,6 +180,8 @@ Sword2Engine::Sword2Engine(GameDetector *detector, OSystem *syst) : Engine(syst)
_gameCycle = 0;
_quit = false;
+
+ _walkthroughDialog->setGameName(detector->_game.name);
}
Sword2Engine::~Sword2Engine() {
@@ -193,6 +195,8 @@ Sword2Engine::~Sword2Engine() {
delete _logic;
delete _resman;
delete _memory;
+
+ _walkthroughDialog->destroy();
}
void Sword2Engine::errorString(const char *buf1, char *buf2) {
@@ -296,6 +300,8 @@ void Sword2Engine::mainInit() {
startGame();
_graphics->initialiseRenderCycle();
+
+ _walkthroughDialog->create();
}
void Sword2Engine::mainRun() {
@@ -315,6 +321,8 @@ void Sword2Engine::mainRun() {
if (ke) {
if ((ke->modifiers == OSystem::KBD_CTRL && ke->keycode == 'd') || ke->ascii == '#' || ke->ascii == '~') {
_debugger->attach();
+ } else if ((ke->modifiers == OSystem::KBD_SHIFT) && (ke->keycode == 'w')) {
+ _walkthroughDialog->runModal();
} else if (ke->modifiers == 0 || ke->modifiers == OSystem::KBD_SHIFT) {
switch (ke->keycode) {
case 'p':
@@ -511,7 +519,7 @@ void Sword2Engine::startGame() {
// script #1, but with different ScreenManager objects depending on
// if it's the demo or the full game, or if we're using a boot param.
- int screen_manager_id;
+ int screen_manager_id = 0;
debug(5, "startGame() STARTING:");