aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/detection.cpp
diff options
context:
space:
mode:
authorathrxx2016-01-09 22:00:51 +0100
committerathrxx2018-11-14 17:22:22 +0100
commitf49eaa5654b2ee2e41b1794a4576d24967e2f7d7 (patch)
tree9366d630ba3fc4d5f7579bc2602075e6dfe35c6b /engines/kyra/detection.cpp
parent61bd730bcf4ee311e79ab2fc49e3eca21018cdfe (diff)
downloadscummvm-rg350-f49eaa5654b2ee2e41b1794a4576d24967e2f7d7.tar.gz
scummvm-rg350-f49eaa5654b2ee2e41b1794a4576d24967e2f7d7.tar.bz2
scummvm-rg350-f49eaa5654b2ee2e41b1794a4576d24967e2f7d7.zip
KYRA: (EOB) - add support for FM-Towns version of EOB II
Diffstat (limited to 'engines/kyra/detection.cpp')
-rw-r--r--engines/kyra/detection.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/kyra/detection.cpp b/engines/kyra/detection.cpp
index 79e1d9f494..9f1b694006 100644
--- a/engines/kyra/detection.cpp
+++ b/engines/kyra/detection.cpp
@@ -206,6 +206,10 @@ bool KyraMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGame
flags.lang = Common::EN_ANY;
}
+#ifndef USE_RGB_COLOR
+ flags.useHiColorMode = false;
+#endif
+
switch (flags.gameID) {
case Kyra::GI_KYRA1:
*engine = new Kyra::KyraEngine_LoK(syst, flags);
@@ -228,6 +232,8 @@ bool KyraMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGame
case Kyra::GI_EOB2:
if (Common::parseRenderMode(ConfMan.get("render_mode")) == Common::kRenderEGA)
flags.useHiRes = true;
+ if (platform == Common::kPlatformFMTowns && !flags.useHiColorMode)
+ error("EOB ĢI FM-TOWNS requires support of 16bit color modes which has not been activated in your ScummVM build (The 'USE_RGB_COLOR' define has not been set).");
*engine = new Kyra::DarkMoonEngine(syst, flags);
break;
#endif // ENABLE_EOB