From 680160407b901beacfdc13ea95a99c1646351bbf Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sun, 29 Feb 2004 00:18:45 +0000 Subject: add support for the standalone maniac mansion demo svn-id: r13090 --- scumm/resource.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'scumm') 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) -- cgit v1.2.3