[Scummvm-cvs-logs] SF.net SVN: scummvm: [27427] scummvm/trunk/engines/scumm/detection.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Fri Jun 15 19:44:07 CEST 2007


Revision: 27427
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27427&view=rev
Author:   fingolfin
Date:     2007-06-15 10:44:06 -0700 (Fri, 15 Jun 2007)

Log Message:
-----------
Made Engine_SCUMM_gameIDList use the convenient GameList(PlainGameDescriptor *) constructor

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/detection.cpp

Modified: scummvm/trunk/engines/scumm/detection.cpp
===================================================================
--- scummvm/trunk/engines/scumm/detection.cpp	2007-06-15 17:40:59 UTC (rev 27426)
+++ scummvm/trunk/engines/scumm/detection.cpp	2007-06-15 17:44:06 UTC (rev 27427)
@@ -662,13 +662,7 @@
 using namespace Scumm;
 
 GameList Engine_SCUMM_gameIDList() {
-	const PlainGameDescriptor *g = gameDescriptions;
-	GameList games;
-	while (g->gameid) {
-		games.push_back(GameDescriptor(g->gameid, g->description));
-		g++;
-	}
-	return games;
+	return GameList(gameDescriptions);
 }
 
 GameDescriptor Engine_SCUMM_findGameID(const char *gameid) {


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