the basic testbed skeleton, removed any trace of quux
svn-id: r49341
This commit is contained in:
parent
3c629571b2
commit
a8a8ea31df
3 changed files with 33 additions and 82 deletions
|
@ -6,25 +6,24 @@
|
|||
|
||||
#include "engines/metaengine.h"
|
||||
|
||||
static const PlainGameDescriptor quux_setting[] = {
|
||||
{ "quux", "Quux the Example Module" },
|
||||
{ "quuxcd", "Quux the Example Module (CD version)" },
|
||||
static const PlainGameDescriptor testbed_setting[] = {
|
||||
{ "testbed", "TestBed: The backend testing framework" },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
class QuuxMetaEngine : public MetaEngine {
|
||||
class TestbedMetaEngine : public MetaEngine {
|
||||
public:
|
||||
virtual const char *getName() const {
|
||||
return "Quux the Example Module";
|
||||
return "TestBed: The backend testing framework";
|
||||
}
|
||||
|
||||
virtual const char *getOriginalCopyright() const {
|
||||
return "Copyright (C) Quux Entertainment Ltd.";
|
||||
return "Copyright (C) ScummVM";
|
||||
}
|
||||
|
||||
virtual GameList getSupportedGames() const {
|
||||
GameList games;
|
||||
const PlainGameDescriptor *g = quux_setting;
|
||||
const PlainGameDescriptor *g = testbed_setting;
|
||||
while (g->gameid) {
|
||||
games.push_back(*g);
|
||||
g++;
|
||||
|
@ -34,7 +33,7 @@ public:
|
|||
}
|
||||
|
||||
virtual GameDescriptor findGame(const char *gameid) const {
|
||||
const PlainGameDescriptor *g = quux_setting;
|
||||
const PlainGameDescriptor *g = testbed_setting;
|
||||
while (g->gameid) {
|
||||
if (0 == scumm_stricmp(gameid, g->gameid))
|
||||
break;
|
||||
|
@ -53,7 +52,7 @@ public:
|
|||
|
||||
if (0 == scumm_stricmp("README", gameName)) {
|
||||
// You could check the contents of the file now if you need to.
|
||||
detectedGames.push_back(quux_setting[0]);
|
||||
detectedGames.push_back(testbed_setting[0]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -79,7 +78,7 @@ public:
|
|||
for (uint i = 0; i < detectedGames.size(); i++) {
|
||||
if (detectedGames[i].gameid() == gameid) {
|
||||
// At this point you may want to perform additional sanity checks.
|
||||
*engine = new Quux::QuuxEngine(syst);
|
||||
*engine = new Testbed::TestbedEngine(syst);
|
||||
return Common::kNoError;
|
||||
}
|
||||
}
|
||||
|
@ -90,7 +89,7 @@ public:
|
|||
};
|
||||
|
||||
#if PLUGIN_ENABLED_DYNAMIC(TESTBED)
|
||||
REGISTER_PLUGIN_DYNAMIC(TESTBED, PLUGIN_TYPE_ENGINE, QuuxMetaEngine);
|
||||
REGISTER_PLUGIN_DYNAMIC(TESTBED, PLUGIN_TYPE_ENGINE, TestbedMetaEngine);
|
||||
#else
|
||||
REGISTER_PLUGIN_STATIC(TESTBED, PLUGIN_TYPE_ENGINE, QuuxMetaEngine);
|
||||
REGISTER_PLUGIN_STATIC(TESTBED, PLUGIN_TYPE_ENGINE, TestbedMetaEngine);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue