diff options
| author | Max Horn | 2009-03-01 04:42:46 +0000 |
|---|---|---|
| committer | Max Horn | 2009-03-01 04:42:46 +0000 |
| commit | dd98126423d915c19baf43184ba40fb0d9a68b64 (patch) | |
| tree | dc6c65d5ca3d7c5c69f54e9dc980067980a2ae9a /engines/igor | |
| parent | 3fcbda829a2aa17cbaf6423d34f69214b91b0e6c (diff) | |
| download | scummvm-rg350-dd98126423d915c19baf43184ba40fb0d9a68b64.tar.gz scummvm-rg350-dd98126423d915c19baf43184ba40fb0d9a68b64.tar.bz2 scummvm-rg350-dd98126423d915c19baf43184ba40fb0d9a68b64.zip | |
Engines: Fused several init&go methods into a single run method
svn-id: r39003
Diffstat (limited to 'engines/igor')
| -rw-r--r-- | engines/igor/igor.cpp | 12 | ||||
| -rw-r--r-- | engines/igor/igor.h | 11 |
2 files changed, 6 insertions, 17 deletions
diff --git a/engines/igor/igor.cpp b/engines/igor/igor.cpp index 8144cc670b..0581f6ddc3 100644 --- a/engines/igor/igor.cpp +++ b/engines/igor/igor.cpp @@ -88,13 +88,6 @@ IgorEngine::~IgorEngine() { delete _midiPlayer; } -Common::Error IgorEngine::init() { - initGraphics(320, 200, false); - - _mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, ConfMan.getInt("sfx_volume")); - return Common::kNoError; -} - void IgorEngine::restart() { _screenVGAVOffset = 0; @@ -166,7 +159,10 @@ void IgorEngine::restart() { _gameTicks = 0; } -Common::Error IgorEngine::go() { +Common::Error IgorEngine::run() { + initGraphics(320, 200, false); + _mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, ConfMan.getInt("sfx_volume")); + restart(); setupDefaultPalette(); _currentPart = ConfMan.getInt("boot_param"); diff --git a/engines/igor/igor.h b/engines/igor/igor.h index 41123634fe..6d2c464efb 100644 --- a/engines/igor/igor.h +++ b/engines/igor/igor.h @@ -312,15 +312,8 @@ public: IgorEngine(OSystem *system, const DetectedGameVersion *dgv); virtual ~IgorEngine(); - Common::Error init(); - Common::Error go(); - virtual Common::Error run() { - Common::Error err; - err = init(); - if (err != Common::kNoError) - return err; - return go(); - } + // Engine APIs + virtual Common::Error run(); void handleOptionsMenu_paintSave(); bool handleOptionsMenu_handleKeyDownSave(int key); |
