diff options
author | Max Horn | 2009-03-01 04:30:55 +0000 |
---|---|---|
committer | Max Horn | 2009-03-01 04:30:55 +0000 |
commit | 3fcbda829a2aa17cbaf6423d34f69214b91b0e6c (patch) | |
tree | c726a8bcaa9f79bc5a79f3adaf5f32727b2048af /engines/parallaction | |
parent | d0c2484502d195d05676065febe488393b490be5 (diff) | |
download | scummvm-rg350-3fcbda829a2aa17cbaf6423d34f69214b91b0e6c.tar.gz scummvm-rg350-3fcbda829a2aa17cbaf6423d34f69214b91b0e6c.tar.bz2 scummvm-rg350-3fcbda829a2aa17cbaf6423d34f69214b91b0e6c.zip |
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
Diffstat (limited to 'engines/parallaction')
-rw-r--r-- | engines/parallaction/parallaction.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/engines/parallaction/parallaction.h b/engines/parallaction/parallaction.h index 8a6546e9b9..05aa0bc3f4 100644 --- a/engines/parallaction/parallaction.h +++ b/engines/parallaction/parallaction.h @@ -242,6 +242,15 @@ public: // Engine APIs virtual Common::Error init(); + virtual Common::Error go() = 0; + virtual Common::Error run() { + Common::Error err; + err = init(); + if (err != Common::kNoError) + return err; + return go(); + } + virtual bool hasFeature(EngineFeature f) const; virtual void pauseEngineIntern(bool pause); virtual GUI::Debugger *getDebugger(); @@ -469,8 +478,8 @@ public: Parallaction_br(OSystem* syst, const PARALLACTIONGameDescription *gameDesc); ~Parallaction_br(); - Common::Error init(); - Common::Error go(); + virtual Common::Error init(); + virtual Common::Error go(); public: virtual void parseLocation(const char* name); |