aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2006-09-29 03:44:55 +0000
committerTravis Howell2006-09-29 03:44:55 +0000
commitf1b3da2f18d426d5aff797ff55e50723e8343d48 (patch)
tree76709beb0458e8f72ee923abeffe723cec7def38
parent4dff848e6ec92f7616e68cbf45d5411ca8fc26b7 (diff)
downloadscummvm-rg350-f1b3da2f18d426d5aff797ff55e50723e8343d48.tar.gz
scummvm-rg350-f1b3da2f18d426d5aff797ff55e50723e8343d48.tar.bz2
scummvm-rg350-f1b3da2f18d426d5aff797ff55e50723e8343d48.zip
Fix display of game title
svn-id: r23999
-rw-r--r--engines/simon/game.cpp21
1 files changed, 14 insertions, 7 deletions
diff --git a/engines/simon/game.cpp b/engines/simon/game.cpp
index 63386632bc..37ab36f86d 100644
--- a/engines/simon/game.cpp
+++ b/engines/simon/game.cpp
@@ -67,15 +67,15 @@ static const ObsoleteGameID obsoleteGameIDsTable[] = {
};
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 @@ static GameDescription gameDescriptions[] = {
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;