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/saga/saga.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engines/saga') diff --git a/engines/saga/saga.h b/engines/saga/saga.h index 9f6b0d814b..1e3a17bacf 100644 --- a/engines/saga/saga.h +++ b/engines/saga/saga.h @@ -445,6 +445,13 @@ public: // Engine APIs Common::Error init(); Common::Error go(); + virtual Common::Error run() { + Common::Error err; + err = init(); + if (err != Common::kNoError) + return err; + return go(); + } bool hasFeature(EngineFeature f) const; void syncSoundSettings(); void pauseEngineIntern(bool pause); -- cgit v1.2.3