diff options
author | Max Horn | 2006-01-21 13:01:20 +0000 |
---|---|---|
committer | Max Horn | 2006-01-21 13:01:20 +0000 |
commit | 0b39c0ea9fbc43569a17f65db6fe6a89f29ccee1 (patch) | |
tree | c1b6170cbc006981a22b36c4b02f10bda699c542 /base/plugins.cpp | |
parent | e34d963027194654259c4ce3499780671f36e133 (diff) | |
download | scummvm-rg350-0b39c0ea9fbc43569a17f65db6fe6a89f29ccee1.tar.gz scummvm-rg350-0b39c0ea9fbc43569a17f65db6fe6a89f29ccee1.tar.bz2 scummvm-rg350-0b39c0ea9fbc43569a17f65db6fe6a89f29ccee1.zip |
Fix various incorrect usages of the word 'target' instead of 'gameid'; change the ambigiuous 'GameSettings::name' to 'GameSettings::gameid'
svn-id: r20115
Diffstat (limited to 'base/plugins.cpp')
-rw-r--r-- | base/plugins.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; |