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 /sword1/sword1.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 'sword1/sword1.cpp')
-rw-r--r-- | sword1/sword1.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sword1/sword1.cpp b/sword1/sword1.cpp index 1e56aa0944..4033ec8704 100644 --- a/sword1/sword1.cpp +++ b/sword1/sword1.cpp @@ -123,7 +123,7 @@ SwordEngine::~SwordEngine() { delete _resMan; } -void SwordEngine::initialize(void) { +int SwordEngine::init() { // Add default file directories File::addDefaultDirectory(_gameDataPath + "CLUSTERS/"); @@ -198,6 +198,8 @@ void SwordEngine::initialize(void) { _objectMan->initialize(); _mouse->initialize(); _control = new Control(_saveFileMan, _resMan, _objectMan, _system, _mouse, _sound, _music, getSavePath()); + + return 0; } void SwordEngine::reinitialize(void) { @@ -1129,9 +1131,8 @@ void SwordEngine::checkCdFiles(void) { // check if we're running from cd, hdd or } } -void SwordEngine::go(void) { +int SwordEngine::go() { - initialize(); checkCdFiles(); uint8 startPos = ConfMan.getInt("boot_param"); @@ -1163,6 +1164,8 @@ void SwordEngine::go(void) { _systemVars.controlPanelMode = CP_NORMAL; } } + + return 0; } void SwordEngine::checkCd(void) { |