diff options
author | Bastien Bouclet | 2017-12-24 11:01:38 +0100 |
---|---|---|
committer | Bastien Bouclet | 2018-05-10 09:04:23 +0200 |
commit | 1de5aca585af3e04a64a4f287dd348c0e7b4b967 (patch) | |
tree | 693f7ebcb7f6718dc0e09ec86922ff025be87359 /engines/sword1 | |
parent | 5aff87dc153f392cb14423efa78a96397789a6fd (diff) | |
download | scummvm-rg350-1de5aca585af3e04a64a4f287dd348c0e7b4b967.tar.gz scummvm-rg350-1de5aca585af3e04a64a4f287dd348c0e7b4b967.tar.bz2 scummvm-rg350-1de5aca585af3e04a64a4f287dd348c0e7b4b967.zip |
ENGINES: Set the GameDescriptor decription in the constructor
Diffstat (limited to 'engines/sword1')
-rw-r--r-- | engines/sword1/detection.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/engines/sword1/detection.cpp b/engines/sword1/detection.cpp index 80176aee40..205640a0a6 100644 --- a/engines/sword1/detection.cpp +++ b/engines/sword1/detection.cpp @@ -214,20 +214,22 @@ DetectedGames SwordMetaEngine::detectGames(const Common::FSList &fslist) const { DetectedGame game; if (mainFilesFound && pcFilesFound && demoFilesFound) - game.matchedGame = GameDescriptor(sword1DemoSettings, GUIO2(GUIO_NOMIDI, GUIO_NOASPECT)); + game.matchedGame = GameDescriptor(sword1DemoSettings); else if (mainFilesFound && pcFilesFound && psxFilesFound) - game.matchedGame = GameDescriptor(sword1PSXSettings, GUIO2(GUIO_NOMIDI, GUIO_NOASPECT)); + game.matchedGame = GameDescriptor(sword1PSXSettings); else if (mainFilesFound && pcFilesFound && psxDemoFilesFound) - game.matchedGame = GameDescriptor(sword1PSXDemoSettings, GUIO2(GUIO_NOMIDI, GUIO_NOASPECT)); + game.matchedGame = GameDescriptor(sword1PSXDemoSettings); else if (mainFilesFound && pcFilesFound && !psxFilesFound) - game.matchedGame = GameDescriptor(sword1FullSettings, GUIO2(GUIO_NOMIDI, GUIO_NOASPECT)); + game.matchedGame = GameDescriptor(sword1FullSettings); else if (mainFilesFound && macFilesFound) - game.matchedGame = GameDescriptor(sword1MacFullSettings, GUIO2(GUIO_NOMIDI, GUIO_NOASPECT)); + game.matchedGame = GameDescriptor(sword1MacFullSettings); else if (mainFilesFound && macDemoFilesFound) - game.matchedGame = GameDescriptor(sword1MacDemoSettings, GUIO2(GUIO_NOMIDI, GUIO_NOASPECT)); + game.matchedGame = GameDescriptor(sword1MacDemoSettings); else return detectedGames; + game.matchedGame.setGUIOptions(GUIO2(GUIO_NOMIDI, GUIO_NOASPECT)); + game.matchedGame.appendGUIOptions(getGameGUIOptionsDescriptionLanguage(Common::EN_ANY)); game.matchedGame.appendGUIOptions(getGameGUIOptionsDescriptionLanguage(Common::DE_DEU)); game.matchedGame.appendGUIOptions(getGameGUIOptionsDescriptionLanguage(Common::FR_FRA)); |