KYRA: Fix build when either the LoL or the EoB subengines are disabled

This commit is contained in:
Filippos Karapetis 2020-01-27 01:28:19 +02:00
parent 684f8de589
commit 45abc11092

View File

@ -355,13 +355,17 @@ SaveStateDescriptor KyraMetaEngine::querySaveMetaInfos(const char *target, int s
Common::Keymap *KyraMetaEngine::initKeymap(const char *target) const {
Common::String gameId = ConfMan.get("gameid", target);
#ifdef ENABLE_LOL
if (gameId.contains("lol")) {
return Kyra::LoLEngine::initKeymap();
}
#endif
#ifdef ENABLE_EOB
if (gameId.contains("eob")) {
return Kyra::EoBCoreEngine::initKeymap(gameId);
}
#endif
return AdvancedMetaEngine::initKeymap(target);
}