aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorMax Horn2004-12-02 00:33:42 +0000
committerMax Horn2004-12-02 00:33:42 +0000
commit5d5a13eec758665306cd21af058c118debc2ab66 (patch)
tree0ccef35e3377f781d7b9bbbdf1b3d2a4993807a8 /saga
parentcdec823d98f37bf47a5e557371c6e5a6ce7e017f (diff)
downloadscummvm-rg350-5d5a13eec758665306cd21af058c118debc2ab66.tar.gz
scummvm-rg350-5d5a13eec758665306cd21af058c118debc2ab66.tar.bz2
scummvm-rg350-5d5a13eec758665306cd21af058c118debc2ab66.zip
Moved MidiDriver creation code into the MidiDriver class (as static methods), same for some other MIDI related stuff
svn-id: r15968
Diffstat (limited to 'saga')
-rw-r--r--saga/saga.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/saga/saga.cpp b/saga/saga.cpp
index 30a1f30e8c..be8e405e0d 100644
--- a/saga/saga.cpp
+++ b/saga/saga.cpp
@@ -187,12 +187,12 @@ int SagaEngine::init(GameDetector &detector) {
_gfx = new Gfx(_system, disp_info.logical_w, disp_info.logical_h, detector);
// Graphics should be initialized before music
- int midiDriver = GameDetector::detectMusicDriver(MDT_NATIVE | MDT_ADLIB | MDT_PREFER_NATIVE);
+ int midiDriver = MidiDriver::detectMusicDriver(MDT_NATIVE | MDT_ADLIB | MDT_PREFER_NATIVE);
bool native_mt32 = (ConfMan.getBool("native_mt32") || (midiDriver == MD_MT32));
bool adlib = false;
- MidiDriver *driver = GameDetector::createMidi(midiDriver);
+ MidiDriver *driver = MidiDriver::createMidi(midiDriver);
if (!driver) {
driver = MidiDriver_ADLIB_create(_mixer);
adlib = true;