From 0b39c0ea9fbc43569a17f65db6fe6a89f29ccee1 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 21 Jan 2006 13:01:20 +0000 Subject: Fix various incorrect usages of the word 'target' instead of 'gameid'; change the ambigiuous 'GameSettings::name' to 'GameSettings::gameid' svn-id: r20115 --- base/plugins.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'base/plugins.cpp') diff --git a/base/plugins.cpp b/base/plugins.cpp index 427529851f..0589ac6b7f 100644 --- a/base/plugins.cpp +++ b/base/plugins.cpp @@ -31,7 +31,7 @@ typedef Engine *(*EngineFactory)(GameDetector *detector, OSystem *syst); typedef const char *(*NameFunc)(); -typedef GameList (*TargetListFunc)(); +typedef GameList (*GameIDListFunc)(); typedef DetectedGameList (*DetectFunc)(const FSList &fslist); @@ -75,7 +75,7 @@ GameSettings Plugin::findGame(const char *gameName) const { GameList games = getSupportedGames(); GameSettings result = {NULL, NULL, 0}; for (GameList::iterator g = games.begin(); g != games.end(); ++g) { - if (!scumm_stricmp(g->name, gameName)) { + if (!scumm_stricmp(g->gameid, gameName)) { result = *g; break; } @@ -194,8 +194,8 @@ bool DynamicPlugin::loadPlugin() { } _name = nameFunc(); - // Query the plugin for the targets it supports - TargetListFunc gameListFunc = (TargetListFunc)findSymbol("PLUGIN_getSupportedGames"); + // Query the plugin for the game ids it supports + GameIDListFunc gameListFunc = (GameIDListFunc)findSymbol("PLUGIN_getSupportedGames"); if (!gameListFunc) { unloadPlugin(); return false; -- cgit v1.2.3