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/lure/lure.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/lure/lure.cpp') diff --git a/engines/lure/lure.cpp b/engines/lure/lure.cpp index 5ec33994a3..dab02a5ca3 100644 --- a/engines/lure/lure.cpp +++ b/engines/lure/lure.cpp @@ -154,8 +154,10 @@ DetectedGameList Engine_LURE_detectGames(const FSList &fslist) { return detectedGames; } -Engine *Engine_LURE_create(OSystem *system) { - return new LureEngine(system); +PluginError Engine_LURE_create(OSystem *syst, Engine **engine) { + assert(engine); + *engine = new LureEngine(syst); + return kNoError; } REGISTER_PLUGIN(LURE, "Lure of the Temptress Engine"); -- cgit v1.2.3