From 5985320c5e61a1abdbf1d097e0f1c6df6b5eff99 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 19 Apr 2011 21:42:43 +1000 Subject: TSAGE: Removed original game that uses 'Intro.txt' to indicate whether the introduction has played --- engines/tsage/ringworld_scenes2.cpp | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) (limited to 'engines/tsage') diff --git a/engines/tsage/ringworld_scenes2.cpp b/engines/tsage/ringworld_scenes2.cpp index 9d941d3242..3e3686e2d5 100644 --- a/engines/tsage/ringworld_scenes2.cpp +++ b/engines/tsage/ringworld_scenes2.cpp @@ -112,28 +112,23 @@ void Scene1000::Action3::signal() { setDelay(240); break; case 5: { - // Intro.txt file presence is used to allow user option to skip the introduction - _globals->_player.enableControl(); - Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading("Intro.txt"); - if (!in) { - // File not present, so create it - Common::OutSaveFile *out = g_system->getSavefileManager()->openForSaving("Intro.txt"); - out->finalize(); - delete out; - setDelay(1); - } else { - delete in; + // WORKAROUND: At this point, the original used the presence of a file called 'Intro.txt' + // to determine whether the introduction has been played the first time the game was started. + // In ScummVM, we don't like creating any files that aren't explicitly savegames, so the + // game startup will always show the Start Play / Introduction buttons, even when the game + // is played for the first time - // Prompt user for whether to start play or watch introduction - if (MessageDialog::show2(WATCH_INTRO_MSG, START_PLAY_BTN_STRING, INTRODUCTION_BTN_STRING) == 0) { - _actionIndex = 20; - _globals->_soundHandler.proc1(this); - } else { - setDelay(1); - } + // Prompt user for whether to start play or watch introduction + _globals->_player.enableControl(); - _globals->_player.disableControl(); + if (MessageDialog::show2(WATCH_INTRO_MSG, START_PLAY_BTN_STRING, INTRODUCTION_BTN_STRING) == 0) { + _actionIndex = 20; + _globals->_soundHandler.proc1(this); + } else { + setDelay(1); } + + _globals->_player.disableControl(); break; } case 6: { -- cgit v1.2.3