diff options
author | Eugene Sandulenko | 2008-04-10 21:41:57 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2008-04-10 21:41:57 +0000 |
commit | 1a5d45db68f0fb7bf87ed98ef4f3b2f6b3b480db (patch) | |
tree | a52189173188b7bf052c1ff8fdaa13d6fc35880a /common/advancedDetector.cpp | |
parent | 9f16b3f5f5f7ca9587f9533d98d1753e38eeb877 (diff) | |
download | scummvm-rg350-1a5d45db68f0fb7bf87ed98ef4f3b2f6b3b480db.tar.gz scummvm-rg350-1a5d45db68f0fb7bf87ed98ef4f3b2f6b3b480db.tar.bz2 scummvm-rg350-1a5d45db68f0fb7bf87ed98ef4f3b2f6b3b480db.zip |
Add way to denote CD versions of games and drop language in augmented
names per LordHoto's request.
svn-id: r31475
Diffstat (limited to 'common/advancedDetector.cpp')
-rw-r--r-- | common/advancedDetector.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/advancedDetector.cpp b/common/advancedDetector.cpp index 210d6169ad..79289072df 100644 --- a/common/advancedDetector.cpp +++ b/common/advancedDetector.cpp @@ -161,11 +161,15 @@ static String generatePreferredTarget(const String &id, const ADGameDescription res = res + "-demo"; } + if (desc->flags & ADGF_CD) { + res = res + "-cd"; + } + if (desc->platform != kPlatformPC && desc->platform != kPlatformUnknown) { res = res + "-" + getPlatformAbbrev(desc->platform); } - if (desc->language != EN_ANY && desc->language != UNK_LANG) { + if (desc->language != EN_ANY && desc->language != UNK_LANG && !(desc->flags & ADGF_DROPLANGUAGE)) { res = res + "-" + getLanguageCode(desc->language); } |