From fb21a064166fce13e321b23a34b7b0bfc12638a4 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Wed, 21 Jun 2006 12:34:13 +0000 Subject: Add back auto detection of Macintosh platform for HE games svn-id: r23221 --- engines/scumm/plugin.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'engines/scumm') diff --git a/engines/scumm/plugin.cpp b/engines/scumm/plugin.cpp index cd073aefed..31fbcfd268 100644 --- a/engines/scumm/plugin.cpp +++ b/engines/scumm/plugin.cpp @@ -995,7 +995,13 @@ static void detectGames(const FSList &fslist, Common::List &resu if (dr.game.platform != Common::kPlatformUnknown && dr.game.platform != d.md5Entry->platform) warning("SCUMM detectGames: Platform values differ for MD5 '%s': %d vs %d (please report to Fingolfin)", md5str, dr.game.platform, d.md5Entry->platform); - dr.game.platform = d.md5Entry->platform; + + // Force game to have Mac platform, if required by HE game + if (dr.fp.genMethod == kGenHEMac || dr.fp.genMethod == kGenHEMacNoParens) { + dr.game.platform = Common::kPlatformMacintosh; + } else { + dr.game.platform = d.md5Entry->platform; + } // HACK: Special case to distinguish the V1 demo from the full version // (since they have identical MD5): @@ -1045,8 +1051,13 @@ static void detectGames(const FSList &fslist, Common::List &resu dr.game = *g; dr.extra = g->variant; // FIXME: We (ab)use 'variant' for the 'extra' description for now. - if (gfp->platform != Common::kPlatformUnknown) + + // Force game to have Mac platform, if required by HE game + if (dr.fp.genMethod == kGenHEMac || dr.fp.genMethod == kGenHEMacNoParens) { + dr.game.platform = Common::kPlatformMacintosh; + } else if (gfp->platform != Common::kPlatformUnknown) { dr.game.platform = gfp->platform; + } // If a variant has been specified, use that! -- cgit v1.2.3