aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/kyra_v1.cpp
diff options
context:
space:
mode:
authorFlorian Kagerer2008-08-02 23:11:31 +0000
committerFlorian Kagerer2008-08-02 23:11:31 +0000
commit4c74db446385611a158efcdab67a27107d8b20aa (patch)
tree53d89e48fc0c43451c27acd395849172a070cd8c /engines/kyra/kyra_v1.cpp
parentda2720d498c160c39435b42d9f1a18d2a0a328e1 (diff)
downloadscummvm-rg350-4c74db446385611a158efcdab67a27107d8b20aa.tar.gz
scummvm-rg350-4c74db446385611a158efcdab67a27107d8b20aa.tar.bz2
scummvm-rg350-4c74db446385611a158efcdab67a27107d8b20aa.zip
add non-interactive lol demo
svn-id: r33556
Diffstat (limited to 'engines/kyra/kyra_v1.cpp')
-rw-r--r--engines/kyra/kyra_v1.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/kyra/kyra_v1.cpp b/engines/kyra/kyra_v1.cpp
index 85c03dc1bb..bc46d8e1f5 100644
--- a/engines/kyra/kyra_v1.cpp
+++ b/engines/kyra/kyra_v1.cpp
@@ -114,7 +114,7 @@ int KyraEngine_v1::init() {
_sound = new SoundTownsPC98_v2(this, _mixer);
} else if (_flags.platform == Common::kPlatformPC98) {
if (_flags.gameID == GI_KYRA1)
- _sound = new SoundTowns/*SoundPC98*/(this, _mixer);
+ _sound = new SoundPC98(this, _mixer);
else
_sound = new SoundTownsPC98_v2(this, _mixer);
} else if (midiDriver == MD_ADLIB) {
@@ -152,6 +152,16 @@ int KyraEngine_v1::init() {
_res = new Resource(this);
assert(_res);
_res->reset();
+
+ if (_flags.isDemo) {
+ // HACK: check whether this is the HOF demo or the LOL demo.
+ // The LOL demo needs to be detected and run as KyraEngine_HoF,
+ // but the static resource loader and the sequence player will
+ // need correct IDs.
+ if (_res->exists("scene1.cps"))
+ _flags.gameID = GI_LOL;
+ }
+
_staticres = new StaticResource(this);
assert(_staticres);
if (!_staticres->init())