diff options
author | Max Horn | 2004-11-23 00:03:25 +0000 |
---|---|---|
committer | Max Horn | 2004-11-23 00:03:25 +0000 |
commit | aad9f122c0c37b152e70a01da48dc86a441ef819 (patch) | |
tree | a8dbee1f4e1e57de1ee5088e707f295df4986d12 /queen/queen.cpp | |
parent | 8ac347fd952a3811e6a948dfca3dec081882c335 (diff) | |
download | scummvm-rg350-aad9f122c0c37b152e70a01da48dc86a441ef819.tar.gz scummvm-rg350-aad9f122c0c37b152e70a01da48dc86a441ef819.tar.bz2 scummvm-rg350-aad9f122c0c37b152e70a01da48dc86a441ef819.zip |
Added Engine::init() method; added return value to Engine::go()
svn-id: r15865
Diffstat (limited to 'queen/queen.cpp')
-rw-r--r-- | queen/queen.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/queen/queen.cpp b/queen/queen.cpp index 93f2e70e35..998e0cb501 100644 --- a/queen/queen.cpp +++ b/queen/queen.cpp @@ -288,12 +288,7 @@ void QueenEngine::errorString(const char *buf1, char *buf2) { strcpy(buf2, buf1); } -void QueenEngine::go() { - initialise(); - - registerDefaultSettings(); - readOptionSettings(); - +int QueenEngine::go() { _logic->oldRoom(0); _logic->newRoom(_logic->currentRoom()); @@ -319,9 +314,11 @@ void QueenEngine::go() { } } } + + return 0; } -void QueenEngine::initialise(void) { +int QueenEngine::init() { _system->initSize(GAME_SCREEN_WIDTH, GAME_SCREEN_HEIGHT); _bam = new BamScene(this); @@ -361,6 +358,11 @@ void QueenEngine::initialise(void) { _sound = Sound::giveSound(_mixer, this, _resource->compression()); _walk = new Walk(this); + + registerDefaultSettings(); + readOptionSettings(); + + return 0; } } // End of namespace Queen |