From bf7359881115a5b041028b032ee28430bc5e36d3 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 29 Apr 2006 00:27:20 +0000 Subject: * 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 --- engines/sky/sky.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/sky') diff --git a/engines/sky/sky.cpp b/engines/sky/sky.cpp index f3b286a5ea..941f9df017 100644 --- a/engines/sky/sky.cpp +++ b/engines/sky/sky.cpp @@ -110,8 +110,10 @@ DetectedGameList Engine_SKY_detectGames(const FSList &fslist) { return detectedGames; } -Engine *Engine_SKY_create(OSystem *syst) { - return new Sky::SkyEngine(syst); +PluginError Engine_SKY_create(OSystem *syst, Engine **engine) { + assert(engine); + *engine = new Sky::SkyEngine(syst); + return kNoError; } REGISTER_PLUGIN(SKY, "Beneath a Steel Sky"); -- cgit v1.2.3