diff options
-rw-r--r-- | engines/advancedDetector.cpp | 3 | ||||
-rw-r--r-- | engines/scumm/detection.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp index b3ce525ff2..c127faec28 100644 --- a/engines/advancedDetector.cpp +++ b/engines/advancedDetector.cpp @@ -198,8 +198,7 @@ static void updateGameDescriptor(GameDescriptor &desc, const ADGameDescription * if (params.flags & kADFlagUseExtraAsHint) desc["extra"] = realDesc->extra; - if ((realDesc->guioptions | params.guioptions) != 0) - desc["guioptions"] = Common::getGameGUIOptionsDescription(realDesc->guioptions | params.guioptions); + desc.setGUIOptions(realDesc->guioptions | params.guioptions); } GameList AdvancedMetaEngine::detectGames(const Common::FSList &fslist) const { diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp index 901bb31e31..cf88ded3b8 100644 --- a/engines/scumm/detection.cpp +++ b/engines/scumm/detection.cpp @@ -765,8 +765,7 @@ GameList ScummMetaEngine::detectGames(const Common::FSList &fslist) const { dg["preferredtarget"] = res; - if (x->game.guioptions != 0) - dg["guioptions"] = Common::getGameGUIOptionsDescription(x->game.guioptions); + dg.setGUIOptions(x->game.guioptions); detectedGames.push_back(dg); } |