mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 17:57:14 +00:00
Move initialisation from constructor to initialise().
svn-id: r15823
This commit is contained in:
parent
a1867735a3
commit
bd40d25a68
21
sky/sky.cpp
21
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"));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user