From 7e2390deb9bca44039baeb4b481e866f617a0a40 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 13 Aug 2007 07:55:47 +0000 Subject: Add Lost In Time demo. svn-id: r28580 --- engines/gob/detection.cpp | 15 +++++++++++++++ engines/gob/init.cpp | 9 +++++++++ 2 files changed, 24 insertions(+) (limited to 'engines') 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); -- cgit v1.2.3