[Scummvm-cvs-logs] SF.net SVN: scummvm: [27813] scummvm/branches/branch-0-10-0/gui/launcher. cpp

agent-q at users.sourceforge.net agent-q at users.sourceforge.net
Sun Jul 1 03:07:49 CEST 2007


Revision: 27813
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27813&view=rev
Author:   agent-q
Date:     2007-06-30 18:07:49 -0700 (Sat, 30 Jun 2007)

Log Message:
-----------
Fix for DS configuration being detected as a game

Modified Paths:
--------------
    scummvm/branches/branch-0-10-0/gui/launcher.cpp

Modified: scummvm/branches/branch-0-10-0/gui/launcher.cpp
===================================================================
--- scummvm/branches/branch-0-10-0/gui/launcher.cpp	2007-07-01 01:07:05 UTC (rev 27812)
+++ scummvm/branches/branch-0-10-0/gui/launcher.cpp	2007-07-01 01:07:49 UTC (rev 27813)
@@ -581,6 +581,7 @@
 		String gameid(iter->_value.get("gameid"));
 		String description(iter->_value.get("description"));
 
+
 		if (gameid.empty())
 			gameid = iter->_key;
 		if (description.empty()) {
@@ -588,9 +589,19 @@
 			if (g.contains("description"))
 				description = g.description();
 		}
+
+#ifdef __DS__
+		// DS port uses an extra section called 'ds'.  This prevents the section from being
+		// detected as a game.
+		if (gameid == "ds") {
+			continue;
+		}
+#endif
+
 		if (description.empty())
 			description = "Unknown (target " + iter->_key + ", gameid " + gameid + ")";
 
+
 		if (!gameid.empty() && !description.empty()) {
 			// Insert the game into the launcher list
 			int pos = 0, size = l.size();


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