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/sky | |
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/sky')
-rw-r--r-- | engines/sky/detection.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/engines/sky/detection.cpp b/engines/sky/detection.cpp index ffed998ab1..b8abd6bcb5 100644 --- a/engines/sky/detection.cpp +++ b/engines/sky/detection.cpp @@ -173,18 +173,26 @@ DetectedGames SkyMetaEngine::detectGames(const Common::FSList &fslist) const { // Match found, add to list of candidates, then abort inner loop. // The game detector uses US English by default. We want British // English to match the recorded voices better. - DetectedGame game; - game.matchedGame = GameDescriptor(skySetting.gameId, skySetting.description, Common::UNK_LANG, Common::kPlatformUnknown); const SkyVersion *sv = skyVersions; while (sv->dinnerTableEntries) { if (dinnerTableEntries == sv->dinnerTableEntries && (sv->dataDiskSize == dataDiskSize || sv->dataDiskSize == -1)) { - game.matchedGame.updateDesc(Common::String::format("v0.0%d %s", sv->version, sv->extraDesc).c_str()); - game.matchedGame.setGUIOptions(sv->guioptions); break; } ++sv; } + + DetectedGame game; + if (sv->dinnerTableEntries) { + Common::String extra = Common::String::format("v0.0%d %s", sv->version, sv->extraDesc); + + game.matchedGame = GameDescriptor(skySetting.gameId, skySetting.description, Common::UNK_LANG, Common::kPlatformUnknown, extra); + game.matchedGame.setGUIOptions(sv->guioptions); + + } else { + game.matchedGame = GameDescriptor(skySetting.gameId, skySetting.description); + } + detectedGames.push_back(game); } |