From 4ec8c6ca4378a4148969b6004d8f950d848a31a3 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 3 Mar 2007 13:19:22 +0000 Subject: Correct feature flags for the PC Engine version of Loom. svn-id: r25952 --- engines/scumm/plugin.cpp | 4 ++-- engines/scumm/scumm.cpp | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'engines') diff --git a/engines/scumm/plugin.cpp b/engines/scumm/plugin.cpp index 4b5ec4027d..d9c4e3a4dd 100644 --- a/engines/scumm/plugin.cpp +++ b/engines/scumm/plugin.cpp @@ -224,8 +224,8 @@ static const GameSettings gameVariantsTable[] = { {"loom", "EGA", "ega", GID_LOOM, 3, 0, MDT_PCSPK | MDT_ADLIB | MDT_MIDI, 0, UNK}, {"loom", "No Adlib", "ega", GID_LOOM, 3, 0, MDT_PCSPK, 0, UNK}, + {"loom", "PC-Engine", 0, GID_LOOM, 3, 0, MDT_NONE, GF_AUDIOTRACKS, Common::kPlatformPCEngine}, {"loom", "FM-TOWNS", 0, GID_LOOM, 3, 0, MDT_TOWNS, GF_AUDIOTRACKS | GF_OLD256, Common::kPlatformFMTowns}, - {"loom", "PC-Engine", 0, GID_LOOM, 3, 0, MDT_NONE, GF_16COLOR | GF_AUDIOTRACKS | GF_OLD256, Common::kPlatformPCEngine}, {"loom", "VGA", "vga", GID_LOOM, 4, 0, MDT_NONE, GF_AUDIOTRACKS, Common::kPlatformPC}, {"pass", 0, 0, GID_PASS, 4, 0, MDT_PCSPK | MDT_ADLIB, GF_16COLOR, Common::kPlatformPC}, @@ -1660,7 +1660,7 @@ PluginError Engine_SCUMM_create(OSystem *syst, Engine **engine) { *engine = new ScummEngine_v2(syst, res); break; case 3: - if (res.game.features & GF_OLD256) + if ((res.game.features & GF_OLD256) || res.game.platform == Common::kPlatformPCEngine) *engine = new ScummEngine_v3(syst, res); else *engine = new ScummEngine_v3old(syst, res); diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 9c7d8b6a7c..275ac09625 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -595,8 +595,9 @@ ScummEngine_v5::ScummEngine_v5(OSystem *syst, const DetectorResult &dr) : ScummEngine(syst, dr) { // All "classic" games (V5 and older) encrypted their data files - // with exception of the GF_OLD256 games. - if (!(_game.features & GF_OLD256)) + // with exception of the GF_OLD256 games and the PC-Engine version + // of Loom. + if (!(_game.features & GF_OLD256) && _game.platform != Common::kPlatformPCEngine) _game.features |= GF_USE_KEY; static const uint16 default_cursor_images[4][16] = { -- cgit v1.2.3