From 8baccf8d6458c058b43611816c0cccdd727870d1 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Fri, 24 Apr 2009 19:00:55 +0000 Subject: Adding support for the non-interactive SCN-based Urban Runner demo. No image though :/ svn-id: r40126 --- engines/gob/detection.cpp | 19 +++++++++++++++++++ engines/gob/scnplayer.cpp | 2 ++ 2 files changed, 21 insertions(+) (limited to 'engines/gob') diff --git a/engines/gob/detection.cpp b/engines/gob/detection.cpp index e281072190..1fbefe9297 100644 --- a/engines/gob/detection.cpp +++ b/engines/gob/detection.cpp @@ -2450,6 +2450,25 @@ static const GOBGameDescription gameDescriptions[] = { 0, 0 }, + { + { + "urban", + "Non-Interactive Demo", + { + {"wdemo.s24", 0, "14ac9bd51db7a075d69ddb144904b271", 87}, + {"demo.vmd", 0, "65d04715d871c292518b56dd160b0161", 9091237}, + {"urband.vmd", 0, "60343891868c91854dd5c82766c70ecc", 922461}, + {NULL, 0, NULL, 0} + }, + EN_ANY, + kPlatformPC, + ADGF_NO_FLAGS + }, + kGameTypeUrban, + kFeatures640 | kFeaturesSCNDemo, + 0, + "wdemo.s24" + }, { { "spirou", diff --git a/engines/gob/scnplayer.cpp b/engines/gob/scnplayer.cpp index 3581f1678e..d889759a5d 100644 --- a/engines/gob/scnplayer.cpp +++ b/engines/gob/scnplayer.cpp @@ -79,6 +79,8 @@ bool SCNPlayer::play(Common::File &scn) { clearScreen(); } else if (lineStartsWith(line, "IMD_PRELOAD ")) { playVideo(line.c_str() + 12); + } else if (lineStartsWith(line, "IMD ")) { + playVideo(line.c_str() + 4); } else if (lineStartsWith(line, "GOTO ")) { gotoLabel(scn, labels, line.c_str() + 5); } -- cgit v1.2.3