Fixed the EngineFeature vs. MetaEngineFeature mess, clarified some EngineFeature comments

svn-id: r34896
This commit is contained in:
Max Horn 2008-11-04 16:11:40 +00:00
parent 70679e6895
commit 61aadb378d
32 changed files with 193 additions and 142 deletions

View file

@ -286,27 +286,14 @@ bool Engine::shouldQuit() const {
return (_eventMan->shouldQuit() || _eventMan->shouldRTL());
}
bool Engine::hasFeature(EngineFeature f) {
// TODO: Get rid of this hack!!!
if (f != kSupportsRTL && f != kSupportsListSaves &&
f != kSupportsLoadingDuringRuntime &&
f != kSupportsSavingDuringRuntime)
return false;
/*
EnginePlugin *Engine::getMetaEnginePlugin() const {
const EnginePlugin *plugin = 0;
Common::String gameid = ConfMan.get("gameid");
gameid.toLowercase();
EngineMan.findGame(gameid, &plugin);
assert(plugin);
if (f == kSupportsRTL)
return (*plugin)->hasFeature(MetaEngine::kSupportsRTL);
else if (f == kSupportsListSaves)
return (*plugin)->hasFeature(MetaEngine::kSupportsListSaves);
else if (f == kSupportsLoadingDuringRuntime)
return (*plugin)->hasFeature(MetaEngine::kSupportsLoadingDuringRuntime);
else if (f == kSupportsSavingDuringRuntime)
return (*plugin)->hasFeature(MetaEngine::kSupportsSavingDuringRuntime);
else
return false;
return plugin;
}
*/