diff options
author | Joost Peters | 2004-11-15 20:44:56 +0000 |
---|---|---|
committer | Joost Peters | 2004-11-15 20:44:56 +0000 |
commit | bd40d25a6807636c7237ad566a2e59b6a48c8db8 (patch) | |
tree | 6421fd0635de8017a416b9ef4bc73a7168ea1130 /sky | |
parent | a1867735a341e2e76082b6e26963dff626e1cbd6 (diff) | |
download | scummvm-rg350-bd40d25a6807636c7237ad566a2e59b6a48c8db8.tar.gz scummvm-rg350-bd40d25a6807636c7237ad566a2e59b6a48c8db8.tar.bz2 scummvm-rg350-bd40d25a6807636c7237ad566a2e59b6a48c8db8.zip |
Move initialisation from constructor to initialise().
svn-id: r15823
Diffstat (limited to 'sky')
-rw-r--r-- | sky/sky.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/sky/sky.cpp b/sky/sky.cpp index 4536ac5958..2e17f86e2c 100644 --- a/sky/sky.cpp +++ b/sky/sky.cpp @@ -115,18 +115,7 @@ void **SkyEngine::_itemList[300]; SystemVars SkyEngine::_systemVars = {0, 0, 0, 0, 4316, 0, 0, false, false }; SkyEngine::SkyEngine(GameDetector *detector, OSystem *syst) - : Engine(syst) { - - if (!_mixer->isReady()) - warning("Sound initialisation failed."); - - _mixer->setVolume(ConfMan.getInt("sfx_volume")); //unnecessary? - - _floppyIntro = ConfMan.getBool("alt_intro"); - - _fastMode = 0; - - _system->initSize(320, 200); + : Engine(syst), _fastmode(0) { } SkyEngine::~SkyEngine() { @@ -257,6 +246,14 @@ void SkyEngine::go() { } void SkyEngine::initialise(void) { + _system->initSize(320, 200); + + if (!_mixer->isReady()) + warning("Sound initialisation failed"); + + _mixer->setVolume(ConfMan.getInt("sfx_volume")); + _floppyIntro = ConfMan.getBool("alt_intro"); + _skyDisk = new Disk(_gameDataPath); _skySound = new Sound(_mixer, _skyDisk, ConfMan.getInt("sfx_volume")); |