diff options
author | Max Horn | 2008-11-05 17:24:56 +0000 |
---|---|---|
committer | Max Horn | 2008-11-05 17:24:56 +0000 |
commit | f32be876337e3b280ee4ea257e9868a0d61e399d (patch) | |
tree | 999037656b6a01f8a0e379801f64c79d18a76dba /engines/sword2 | |
parent | fe2935ad4b550afa68977169140267ef2ef4a3da (diff) | |
download | scummvm-rg350-f32be876337e3b280ee4ea257e9868a0d61e399d.tar.gz scummvm-rg350-f32be876337e3b280ee4ea257e9868a0d61e399d.tar.bz2 scummvm-rg350-f32be876337e3b280ee4ea257e9868a0d61e399d.zip |
Turned enum PluginError into Common::Error, which in the future is to be used in more places. Help with this is highly welcome
svn-id: r34906
Diffstat (limited to 'engines/sword2')
-rw-r--r-- | engines/sword2/sword2.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sword2/sword2.cpp b/engines/sword2/sword2.cpp index 23751ea3ef..c596e2f8c0 100644 --- a/engines/sword2/sword2.cpp +++ b/engines/sword2/sword2.cpp @@ -87,7 +87,7 @@ public: virtual SaveStateList listSaves(const char *target) const; virtual void removeSaveState(const char *target, int slot) const; - virtual PluginError createInstance(OSystem *syst, Engine **engine) const; + virtual Common::Error createInstance(OSystem *syst, Engine **engine) const; }; bool Sword2MetaEngine::hasFeature(MetaEngineFeature f) const { @@ -211,14 +211,14 @@ void Sword2MetaEngine::removeSaveState(const char *target, int slot) const { g_system->getSavefileManager()->removeSavefile(filename.c_str()); } -PluginError Sword2MetaEngine::createInstance(OSystem *syst, Engine **engine) const { +Common::Error Sword2MetaEngine::createInstance(OSystem *syst, Engine **engine) const { assert(syst); assert(engine); Common::FSList fslist; Common::FSNode dir(ConfMan.get("path")); if (!dir.getChildren(fslist, Common::FSNode::kListAll)) { - return kInvalidPathError; + return Common::kInvalidPathError; } // Invoke the detector @@ -228,11 +228,11 @@ PluginError Sword2MetaEngine::createInstance(OSystem *syst, Engine **engine) con for (uint i = 0; i < detectedGames.size(); i++) { if (detectedGames[i].gameid() == gameid) { *engine = new Sword2::Sword2Engine(syst); - return kNoError; + return Common::kNoError; } } - return kNoGameDataFoundError; + return Common::kNoGameDataFoundError; } #if PLUGIN_ENABLED_DYNAMIC(SWORD2) |