diff options
author | Max Horn | 2006-04-29 00:27:20 +0000 |
---|---|---|
committer | Max Horn | 2006-04-29 00:27:20 +0000 |
commit | bf7359881115a5b041028b032ee28430bc5e36d3 (patch) | |
tree | 78c955620bb16d4b4e39f3b887eed35dd552c57b /engines/gob | |
parent | b00262a2fe1b8bf1d51794a9da3e735e97dfb5ee (diff) | |
download | scummvm-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/gob')
-rw-r--r-- | engines/gob/gob.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/gob/gob.cpp b/engines/gob/gob.cpp index 108368006e..6fd6255a9a 100644 --- a/engines/gob/gob.cpp +++ b/engines/gob/gob.cpp @@ -361,7 +361,7 @@ DetectedGameList Engine_GOB_detectGames(const FSList &fslist) { return detectedGames; } -Engine *Engine_GOB_create(OSystem *syst) { +PluginError Engine_GOB_create(OSystem *syst, Engine **engine) { // Detect game features based on MD5 uint8 md5sum[16]; char md5str[32 + 1]; @@ -403,7 +403,9 @@ Engine *Engine_GOB_create(OSystem *syst) { printf("Unknown MD5 (%s)! Please report the details (language, platform, etc.) of this game to the ScummVM team\n", md5str); } - return new GobEngine(syst, features, g->lang); + assert(engine); + *engine = new GobEngine(syst, features, g->lang); + return kNoError; } REGISTER_PLUGIN(GOB, "Gob Engine"); |