aboutsummaryrefslogtreecommitdiff
path: root/base/plugins.cpp
diff options
context:
space:
mode:
authorMax Horn2003-10-16 23:16:16 +0000
committerMax Horn2003-10-16 23:16:16 +0000
commit1e56fb8191784a8edbd8d32d831672ce0c0cff3a (patch)
tree64f3ad18e3a395776ee66b2adcb5aeab99b25e31 /base/plugins.cpp
parent1c3301049a9916e744d95cd0f4fe5af441ba1851 (diff)
downloadscummvm-rg350-1e56fb8191784a8edbd8d32d831672ce0c0cff3a.tar.gz
scummvm-rg350-1e56fb8191784a8edbd8d32d831672ce0c0cff3a.tar.bz2
scummvm-rg350-1e56fb8191784a8edbd8d32d831672ce0c0cff3a.zip
cleanup
svn-id: r10839
Diffstat (limited to 'base/plugins.cpp')
-rw-r--r--base/plugins.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/base/plugins.cpp b/base/plugins.cpp
index 9d78f2ffa2..518b588a69 100644
--- a/base/plugins.cpp
+++ b/base/plugins.cpp
@@ -74,8 +74,8 @@ extern Engine *Engine_QUEEN_create(GameDetector *detector, OSystem *syst);
#pragma mark -
-int Plugin::countTargets() const {
- const GameSettings *target = getTargets();
+int Plugin::countSupportedGames() const {
+ const GameSettings *target = getSupportedGames();
int count;
for (count = 0; target->gameName; target++, count++)
;
@@ -84,7 +84,7 @@ int Plugin::countTargets() const {
const GameSettings *Plugin::findGame(const char *gameName) const {
// Find the GameSettings for this target
- const GameSettings *target = getTargets();
+ const GameSettings *target = getSupportedGames();
assert(gameName);
while (target->gameName) {
if (!scumm_stricmp(target->gameName, gameName)) {
@@ -107,13 +107,13 @@ class StaticPlugin : public Plugin {
public:
StaticPlugin(const char *name, const GameSettings *targets, EngineFactory ef)
: _name(name), _targets(targets), _ef(ef) {
- _targetCount = Plugin::countTargets();
+ _targetCount = Plugin::countSupportedGames();
}
const char *getName() const { return _name; }
- int countTargets() const { return _targetCount; }
- const GameSettings *getTargets() const { return _targets; }
+ int countSupportedGames() const { return _targetCount; }
+ const GameSettings *getSupportedGames() const { return _targets; }
Engine *createInstance(GameDetector *detector, OSystem *syst) const {
return (*_ef)(detector, syst);
@@ -143,8 +143,8 @@ public:
const char *getName() const { return _name.c_str(); }
- int countTargets() const { return _targetCount; }
- const GameSettings *getTargets() const { return _targets; }
+ int countSupportedGames() const { return _targetCount; }
+ const GameSettings *getSupportedGames() const { return _targets; }
Engine *createInstance(GameDetector *detector, OSystem *syst) const {
assert(_ef);