aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/scumm.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-02-25 07:23:52 +0000
committerTravis Howell2007-02-25 07:23:52 +0000
commit19d2310b716fe01e711d23b61563fb25d025003b (patch)
treea4bf97bdd2505c1abfea8bb2789454130c249341 /engines/scumm/scumm.cpp
parent87832481de03ee60726620b0a4f78710c077462d (diff)
downloadscummvm-rg350-19d2310b716fe01e711d23b61563fb25d025003b.tar.gz
scummvm-rg350-19d2310b716fe01e711d23b61563fb25d025003b.tar.bz2
scummvm-rg350-19d2310b716fe01e711d23b61563fb25d025003b.zip
Add support for using disks images for Apple II version of Maniac Mansion.
svn-id: r25846
Diffstat (limited to 'engines/scumm/scumm.cpp')
-rw-r--r--engines/scumm/scumm.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index 04ba1d27a8..e153b5efe6 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -981,6 +981,18 @@ int ScummEngine::init() {
_filenamePattern.pattern = "%.2d.LFL";
_filenamePattern.genMethod = kGenRoomNum;
+ } else if (_game.platform == Common::kPlatformApple2GS) {
+ // Read data from Apple II disk images.
+ const char *tmpBuf1, *tmpBuf2;
+ assert(_game.id == GID_MANIAC);
+ tmpBuf1 = "maniac1.dsk";
+ tmpBuf2 = "maniac2.dsk";
+
+ _fileHandle = new ScummC64File(tmpBuf1, tmpBuf2, _game);
+ _containerFile = tmpBuf1;
+
+ _filenamePattern.pattern = "%.2d.LFL";
+ _filenamePattern.genMethod = kGenRoomNum;
} else if (_game.platform == Common::kPlatformC64) {
// Read data from C64 disk images.
const char *tmpBuf1, *tmpBuf2;
@@ -993,7 +1005,7 @@ int ScummEngine::init() {
tmpBuf2 = "zak2.d64";
}
- _fileHandle = new ScummC64File(tmpBuf1, tmpBuf2, _game.id == GID_MANIAC);
+ _fileHandle = new ScummC64File(tmpBuf1, tmpBuf2, _game);
_containerFile = tmpBuf1;
_filenamePattern.pattern = "%.2d.LFL";
@@ -1560,7 +1572,7 @@ void ScummEngine::setupMusic(int midi) {
// Init iMuse
if (_game.version >= 7) {
// Setup for digital iMuse is performed in another place
- } else if (_game.platform == Common::kPlatformC64) {
+ } else if (_game.platform == Common::kPlatformApple2GS || _game.platform == Common::kPlatformC64) {
// TODO
_musicEngine = NULL;
} else if (_game.platform == Common::kPlatformNES) {