add support for the standalone maniac mansion demo

svn-id: r13090
This commit is contained in:
Jonathan Gray 2004-02-29 00:18:45 +00:00
parent 79c488cb6c
commit 680160407b

View File

@ -112,12 +112,19 @@ void ScummEngine::openRoom(int room) {
}
} else {
sprintf(buf, "%.2d.lfl", room);
// Maniac Mansion demo has .man instead of .lfl
if (_gameId == GID_MANIAC)
sprintf(buf2, "%.2d.man", room);
encByte = (_features & GF_USE_KEY) ? 0xFF : 0;
}
result = openResourceFile(buf, encByte);
if ((result == false) && (buf2[0]))
if ((result == false) && (buf2[0])) {
result = openResourceFile(buf2, encByte);
// We have .man files so set demo mode
if (_gameId == GID_MANIAC)
_demoMode = true;
}
if (result) {
if (room == 0)