[Scummvm-cvs-logs] SF.net SVN: scummvm: [31475] scummvm/trunk/common

sev at users.sourceforge.net sev at users.sourceforge.net
Thu Apr 10 23:41:57 CEST 2008


Revision: 31475
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31475&view=rev
Author:   sev
Date:     2008-04-10 14:41:57 -0700 (Thu, 10 Apr 2008)

Log Message:
-----------
Add way to denote CD versions of games and drop language in augmented
names per LordHoto's request.

Modified Paths:
--------------
    scummvm/trunk/common/advancedDetector.cpp
    scummvm/trunk/common/advancedDetector.h

Modified: scummvm/trunk/common/advancedDetector.cpp
===================================================================
--- scummvm/trunk/common/advancedDetector.cpp	2008-04-10 20:42:56 UTC (rev 31474)
+++ scummvm/trunk/common/advancedDetector.cpp	2008-04-10 21:41:57 UTC (rev 31475)
@@ -161,11 +161,15 @@
 		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);
 	}
 

Modified: scummvm/trunk/common/advancedDetector.h
===================================================================
--- scummvm/trunk/common/advancedDetector.h	2008-04-10 20:42:56 UTC (rev 31474)
+++ scummvm/trunk/common/advancedDetector.h	2008-04-10 21:41:57 UTC (rev 31475)
@@ -46,7 +46,9 @@
 
 enum ADGameFlags {
 	ADGF_NO_FLAGS = 0,
-	ADGF_DEMO = (1 << 30)
+	ADGF_DROPLANGUAGE = (1 << 28), // don't add language to gameid
+	ADGF_CD = (1 << 29),    // add "-cd" to gameid
+	ADGF_DEMO = (1 << 30)   // add "-demo" to gameid
 };
 
 struct ADGameDescription {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list