aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/gob/detection.cpp15
-rw-r--r--engines/gob/init.cpp9
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);