aboutsummaryrefslogtreecommitdiff
path: root/sky
diff options
context:
space:
mode:
authorMax Horn2003-10-18 00:22:46 +0000
committerMax Horn2003-10-18 00:22:46 +0000
commit33f2fbff08573634e868c50d5cff3e4d2482a543 (patch)
tree8f2d54cc54085bd418743b5b2d4fbcbcb7882a63 /sky
parent0694eed27393ee7d1cbeccd20e8641fa261f5642 (diff)
downloadscummvm-rg350-33f2fbff08573634e868c50d5cff3e4d2482a543.tar.gz
scummvm-rg350-33f2fbff08573634e868c50d5cff3e4d2482a543.tar.bz2
scummvm-rg350-33f2fbff08573634e868c50d5cff3e4d2482a543.zip
We proudly present the latest installment of our hit series 'Untangle the mess': 'Help! Space Invaders refactored the music detector'... in other news, I obviously need to sleep now
svn-id: r10883
Diffstat (limited to 'sky')
-rw-r--r--sky/sky.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/sky/sky.cpp b/sky/sky.cpp
index ddec59eaa0..360ec6fd46 100644
--- a/sky/sky.cpp
+++ b/sky/sky.cpp
@@ -265,15 +265,16 @@ void SkyEngine::initialise(void) {
_systemVars.gameVersion = _skyDisk->determineGameVersion();
- if (_detector->getMidiDriverType() == MD_ADLIB) {
+ int midiDriver = GameDetector::detectMusicDriver(_detector->_game.midi);
+ if (midiDriver == MD_ADLIB) {
_systemVars.systemFlags |= SF_SBLASTER;
_skyMusic = new SkyAdlibMusic(_mixer, _skyDisk, _system);
} else {
_systemVars.systemFlags |= SF_ROLAND;
if (ConfMan.getBool("native_mt32"))
- _skyMusic = new SkyMT32Music(_detector->createMidi(), _skyDisk, _system);
+ _skyMusic = new SkyMT32Music(_detector->createMidi(midiDriver), _skyDisk, _system);
else
- _skyMusic = new SkyGmMusic(_detector->createMidi(), _skyDisk, _system);
+ _skyMusic = new SkyGmMusic(_detector->createMidi(midiDriver), _skyDisk, _system);
}
if (isCDVersion()) {