aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
diff options
context:
space:
mode:
authorMax Horn2006-04-29 00:27:20 +0000
committerMax Horn2006-04-29 00:27:20 +0000
commitbf7359881115a5b041028b032ee28430bc5e36d3 (patch)
tree78c955620bb16d4b4e39f3b887eed35dd552c57b /engines/sword2
parentb00262a2fe1b8bf1d51794a9da3e735e97dfb5ee (diff)
downloadscummvm-rg350-bf7359881115a5b041028b032ee28430bc5e36d3.tar.gz
scummvm-rg350-bf7359881115a5b041028b032ee28430bc5e36d3.tar.bz2
scummvm-rg350-bf7359881115a5b041028b032ee28430bc5e36d3.zip
* Changed the createEngine() factory function of our plugins to return an error code (the engine is now passed indirectly via a double pointer)
* Removed Engine_Empty (obsolete now that engines can return actual error codes) svn-id: r22199
Diffstat (limited to 'engines/sword2')
-rw-r--r--engines/sword2/sword2.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/sword2/sword2.cpp b/engines/sword2/sword2.cpp
index 13e97dc0d8..fdbcbb5c07 100644
--- a/engines/sword2/sword2.cpp
+++ b/engines/sword2/sword2.cpp
@@ -111,8 +111,10 @@ DetectedGameList Engine_SWORD2_detectGames(const FSList &fslist) {
return detectedGames;
}
-Engine *Engine_SWORD2_create(OSystem *syst) {
- return new Sword2::Sword2Engine(syst);
+PluginError Engine_SWORD2_create(OSystem *syst, Engine **engine) {
+ assert(engine);
+ *engine = new Sword2::Sword2Engine(syst);
+ return kNoError;
}
REGISTER_PLUGIN(SWORD2, "Broken Sword 2");