From 3fcbda829a2aa17cbaf6423d34f69214b91b0e6c Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 1 Mar 2009 04:30:55 +0000 Subject: Merged Engine::go() and ::init() into a new run() method (currently implemented by calling the existing init&go methods; to be cleaned up by engine authors svn-id: r39002 --- engines/sky/sky.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'engines/sky/sky.h') diff --git a/engines/sky/sky.h b/engines/sky/sky.h index 4e92563401..71ac716113 100644 --- a/engines/sky/sky.h +++ b/engines/sky/sky.h @@ -91,8 +91,15 @@ public: protected: // Engine APIs - virtual Common::Error init(); - virtual Common::Error go(); + Common::Error init(); + Common::Error go(); + virtual Common::Error run() { + Common::Error err; + err = init(); + if (err != Common::kNoError) + return err; + return go(); + } virtual GUI::Debugger *getDebugger(); virtual bool hasFeature(EngineFeature f) const; -- cgit v1.2.3