aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray2004-02-29 00:18:45 +0000
committerJonathan Gray2004-02-29 00:18:45 +0000
commit680160407b901beacfdc13ea95a99c1646351bbf (patch)
tree0e3fdc2e3697a8c6afac0c01b6cd9350714fbc60
parent79c488cb6c026981d8beea0cae231974abd3c998 (diff)
downloadscummvm-rg350-680160407b901beacfdc13ea95a99c1646351bbf.tar.gz
scummvm-rg350-680160407b901beacfdc13ea95a99c1646351bbf.tar.bz2
scummvm-rg350-680160407b901beacfdc13ea95a99c1646351bbf.zip
add support for the standalone maniac mansion demo
svn-id: r13090
-rw-r--r--scumm/resource.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index a1663b2a82..4c81bde7a5 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -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)