aboutsummaryrefslogtreecommitdiff
path: root/sword2/sword2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sword2/sword2.cpp')
-rw-r--r--sword2/sword2.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp
index 38784d6c82..1e765f3237 100644
--- a/sword2/sword2.cpp
+++ b/sword2/sword2.cpp
@@ -106,6 +106,7 @@ Sword2State::Sword2State(GameDetector *detector, OSystem *syst)
g_sword2 = this;
_features = detector->_game.features;
_gameId = detector->_game.id;
+ _bootParam = detector->_bootParam;
// Setup mixer
if (!_mixer->bindToSystem(syst))
@@ -496,6 +497,11 @@ void Sword2State::Start_game(void) //Tony29May97
else
screen_manager_id = 949; // INTRO & PARIS START
+ // FIXME this could be validated against startup.inf for valid numbers
+ // to stop people shooting themselves in the foot
+ if (_bootParam != 0)
+ screen_manager_id = _bootParam;
+
char *raw_script;
char *raw_data_ad;
uint32 null_pc=1; // the required start-scripts are both script #1 in the respective ScreenManager objects