mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-30 05:34:00 +00:00
KYRA: Fix build when either the LoL or the EoB subengines are disabled
This commit is contained in:
parent
684f8de589
commit
45abc11092
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user