diff options
author | Travis Howell | 2007-08-13 07:55:47 +0000 |
---|---|---|
committer | Travis Howell | 2007-08-13 07:55:47 +0000 |
commit | 7e2390deb9bca44039baeb4b481e866f617a0a40 (patch) | |
tree | aa6b9552afaaf5821ee30a45c60ebda693f561c3 /engines | |
parent | f3158075bb4cd21cf28516dc6a6292f66ff6cefc (diff) | |
download | scummvm-rg350-7e2390deb9bca44039baeb4b481e866f617a0a40.tar.gz scummvm-rg350-7e2390deb9bca44039baeb4b481e866f617a0a40.tar.bz2 scummvm-rg350-7e2390deb9bca44039baeb4b481e866f617a0a40.zip |
Add Lost In Time demo.
svn-id: r28580
Diffstat (limited to 'engines')
-rw-r--r-- | engines/gob/detection.cpp | 15 | ||||
-rw-r--r-- | engines/gob/init.cpp | 9 |
2 files changed, 24 insertions, 0 deletions
diff --git a/engines/gob/detection.cpp b/engines/gob/detection.cpp index 7faef57cc1..fde95c183a 100644 --- a/engines/gob/detection.cpp +++ b/engines/gob/detection.cpp @@ -953,6 +953,21 @@ static const GOBGameDescription gameDescriptions[] = { kFeaturesCD, "intro" }, + + { + { + "lostintime", + "Demo", + AD_ENTRY1("demo.stk", "c06f8cc20eb239d4c71f225ce3093edf"), + UNK_LANG, + kPlatformPC, + Common::ADGF_DEMO + }, + kGameTypeLostInTime, + kFeaturesNone, + "demo" + }, + { { "gob3", diff --git a/engines/gob/init.cpp b/engines/gob/init.cpp index 4712a19a5d..2c7525d66f 100644 --- a/engines/gob/init.cpp +++ b/engines/gob/init.cpp @@ -68,6 +68,15 @@ void Init::initGame(const char *totName) { initVideo(); + // The Lost In Time demo uses different file prefix + if (_vm->getGameType() == kGameTypeLostInTime) { + handle2 = _vm->_dataIO->openData("demo.stk"); + if (handle2 >= 0) { + _vm->_dataIO->closeData(handle2); + _vm->_dataIO->openDataFile("demo.stk"); + } + } + handle2 = _vm->_dataIO->openData("intro.stk"); if (handle2 >= 0) { _vm->_dataIO->closeData(handle2); |