aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2007-02-13 13:00:18 +0000
committerMax Horn2007-02-13 13:00:18 +0000
commit55e132ca7da5f33b9b4c5405c2d85f1b413fd892 (patch)
treed110fec19208f6f24cb92612bd1cf97bfb5e2901 /common
parent0d418ee6bac52bb88e810042a3b6e883d6bd4a67 (diff)
downloadscummvm-rg350-55e132ca7da5f33b9b4c5405c2d85f1b413fd892.tar.gz
scummvm-rg350-55e132ca7da5f33b9b4c5405c2d85f1b413fd892.tar.bz2
scummvm-rg350-55e132ca7da5f33b9b4c5405c2d85f1b413fd892.zip
Use GF_DEMO flag in the AdvancedDetector to augment the preferredtarget name
svn-id: r25541
Diffstat (limited to 'common')
-rw-r--r--common/advancedDetector.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/advancedDetector.cpp b/common/advancedDetector.cpp
index 92a4305b1b..6d2b6365a1 100644
--- a/common/advancedDetector.cpp
+++ b/common/advancedDetector.cpp
@@ -166,6 +166,10 @@ static GameDescriptor toGameDescriptor(const ADGameDescription &g, const PlainGa
static String generateComplexID(const String &id, const ADGameDescription *desc) {
String res(id);
+ if (desc->flags & GF_DEMO) {
+ res = res + "-demo";
+ }
+
if (desc->platform != kPlatformPC && desc->platform != kPlatformUnknown) {
res = res + "-" + getPlatformAbbrev(desc->platform);
}