aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2/sword2.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword2/sword2.h')
-rw-r--r--engines/sword2/sword2.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/sword2/sword2.h b/engines/sword2/sword2.h
index 8cff53ffa1..946dc3df53 100644
--- a/engines/sword2/sword2.h
+++ b/engines/sword2/sword2.h
@@ -124,8 +124,15 @@ private:
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;
virtual void syncSoundSettings();