aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-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)