[Scummvm-cvs-logs] SF.net SVN: scummvm: [23999] scummvm/trunk/engines/simon/game.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Fri Sep 29 05:44:59 CEST 2006
Revision: 23999
http://svn.sourceforge.net/scummvm/?rev=23999&view=rev
Author: kirben
Date: 2006-09-28 20:44:55 -0700 (Thu, 28 Sep 2006)
Log Message:
-----------
Fix display of game title
Modified Paths:
--------------
scummvm/trunk/engines/simon/game.cpp
Modified: scummvm/trunk/engines/simon/game.cpp
===================================================================
--- scummvm/trunk/engines/simon/game.cpp 2006-09-29 03:25:08 UTC (rev 23998)
+++ scummvm/trunk/engines/simon/game.cpp 2006-09-29 03:44:55 UTC (rev 23999)
@@ -67,15 +67,15 @@
};
static const PlainGameDescriptor simonGames[] = {
+ {"elvira", "Elvira"},
+ {"elvira2", "Elvira 2"},
+ {"waxworks", "Waxworks"},
+ {"simon1", "Simon the Sorcerer 1"},
+ {"simon2", "Simon the Sorcerer 2"},
+ {"feeble", "The Feeble Files"},
{"jumble", "Jumble"},
{"puzzle", "Puzzle"},
{"swampy", "Swampy Adventures"},
- {"feeble", "The Feeble Files"},
- {"simon1", "Simon the Sorcerer 1"},
- {"simon2", "Simon the Sorcerer 2"},
- {"waxworks", "Waxworks"},
- {"elvira2", "Elvira 2"},
- {"elvira", "Elvira"},
{NULL, NULL}
};
@@ -1479,7 +1479,14 @@
DetectedGame toDetectedGame(const GameDescription &g) {
const char *title;
- title = simonGames[g.gameType].description;
+
+ const PlainGameDescriptor *sg = simonGames;
+ while (sg->gameid) {
+ if (!scumm_stricmp(g.name, sg->gameid))
+ title = sg->description;
+ sg++;
+ }
+
DetectedGame dg(g.name, title, g.language, g.platform);
dg.updateDesc(g.extra);
return dg;
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