From cd8a5f3a98287fe7366db100c2fb45ff986e2d1b Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 20 Jan 2007 21:27:57 +0000 Subject: First phase of detection-related plugins interface improvements. Now plugins return StringMap instead of fixed list of parameters. This adds great flexibility. Current patch should not alter any functionality, i.e. if there are regressions, submit a report. Phase 2 will benefit from these changes and will come later. svn-id: r25134 --- engines/scumm/plugin.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines/scumm') diff --git a/engines/scumm/plugin.cpp b/engines/scumm/plugin.cpp index 722336ed7c..9422e6982c 100644 --- a/engines/scumm/plugin.cpp +++ b/engines/scumm/plugin.cpp @@ -1360,8 +1360,8 @@ GameDescriptor Engine_SCUMM_findGameID(const char *gameid) { const ObsoleteGameID *o = obsoleteGameIDsTable; while (o->from) { if (0 == scumm_stricmp(gameid, o->from)) { - gs.gameid = gameid; - gs.description = "Obsolete game ID"; + gs["gameid"] = gameid; + gs["description"] = "Obsolete game ID"; return gs; } o++; @@ -1370,15 +1370,15 @@ GameDescriptor Engine_SCUMM_findGameID(const char *gameid) { } -DetectedGameList Engine_SCUMM_detectGames(const FSList &fslist) { - DetectedGameList detectedGames; +GameList Engine_SCUMM_detectGames(const FSList &fslist) { + GameList detectedGames; Common::List results; detectGames(fslist, results, 0); for (Common::List::iterator x = results.begin(); x != results.end(); ++x) { - DetectedGame dg(x->game.gameid, findDescriptionFromGameID(x->game.gameid), + GameDescriptor dg(x->game.gameid, findDescriptionFromGameID(x->game.gameid), x->language, x->game.platform); dg.updateDesc(x->extra); // Append additional information, if set, to the description. detectedGames.push_back(dg); -- cgit v1.2.3