aboutsummaryrefslogtreecommitdiff
path: root/scumm/scumm.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-05-18 02:32:25 +0000
committerTravis Howell2005-05-18 02:32:25 +0000
commita8106f8c1613b5e0f6ab3f25ad27c65ca4702f2c (patch)
tree6f22554b10bcb4c562f8202e6eb80b2f022de372 /scumm/scumm.cpp
parent50abcb6683d221eea01048b77f185002a3cc154a (diff)
downloadscummvm-rg350-a8106f8c1613b5e0f6ab3f25ad27c65ca4702f2c.tar.gz
scummvm-rg350-a8106f8c1613b5e0f6ab3f25ad27c65ca4702f2c.tar.bz2
scummvm-rg350-a8106f8c1613b5e0f6ab3f25ad27c65ca4702f2c.zip
Add scripts file for C64 verisons, ready for future changes.
svn-id: r18151
Diffstat (limited to 'scumm/scumm.cpp')
-rw-r--r--scumm/scumm.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp
index d49dfe5642..33d1951460 100644
--- a/scumm/scumm.cpp
+++ b/scumm/scumm.cpp
@@ -1266,6 +1266,10 @@ ScummEngine_v2::ScummEngine_v2(GameDetector *detector, OSystem *syst, const Scum
: ScummEngine_v3old(detector, syst, gs, md5sum) {
}
+ScummEngine_c64::ScummEngine_c64(GameDetector *detector, OSystem *syst, const ScummGameSettings &gs, uint8 md5sum[16])
+ : ScummEngine_v2(detector, syst, gs, md5sum) {
+}
+
ScummEngine_v6::ScummEngine_v6(GameDetector *detector, OSystem *syst, const ScummGameSettings &gs, uint8 md5sum[16])
: ScummEngine(detector, syst, gs, md5sum) {
_blastObjectQueuePos = 0;
@@ -2874,7 +2878,11 @@ Engine *Engine_SCUMM_create(GameDetector *detector, OSystem *syst) {
switch (game.version) {
case 1:
case 2:
- engine = new ScummEngine_v2(detector, syst, game, md5sum);
+ // Limit to C64 MM?
+ if (game.platform == Common::kPlatformC64)
+ engine = new ScummEngine_c64(detector, syst, game, md5sum);
+ else
+ engine = new ScummEngine_v2(detector, syst, game, md5sum);
break;
case 3:
if (game.features & GF_OLD_BUNDLE)