Add Lost In Time demo.

svn-id: r28580
This commit is contained in:
Travis Howell 2007-08-13 07:55:47 +00:00
parent f3158075bb
commit 7e2390deb9
2 changed files with 24 additions and 0 deletions

View file

@ -953,6 +953,21 @@ static const GOBGameDescription gameDescriptions[] = {
kFeaturesCD, kFeaturesCD,
"intro" "intro"
}, },
{
{
"lostintime",
"Demo",
AD_ENTRY1("demo.stk", "c06f8cc20eb239d4c71f225ce3093edf"),
UNK_LANG,
kPlatformPC,
Common::ADGF_DEMO
},
kGameTypeLostInTime,
kFeaturesNone,
"demo"
},
{ {
{ {
"gob3", "gob3",

View file

@ -68,6 +68,15 @@ void Init::initGame(const char *totName) {
initVideo(); 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"); handle2 = _vm->_dataIO->openData("intro.stk");
if (handle2 >= 0) { if (handle2 >= 0) {
_vm->_dataIO->closeData(handle2); _vm->_dataIO->closeData(handle2);