aboutsummaryrefslogtreecommitdiff
path: root/audio/softsynth
diff options
context:
space:
mode:
authorJohannes Schickel2013-11-03 19:20:17 +0100
committerJohannes Schickel2013-11-03 19:36:04 +0100
commitb22aeafcc87d0eb8dc3504f88d388aa0540f7de7 (patch)
tree43ec4f22861645f622a92fad2936b18457a87c62 /audio/softsynth
parent233512fe10670984dca3e05efe01c8309e055bd3 (diff)
downloadscummvm-rg350-b22aeafcc87d0eb8dc3504f88d388aa0540f7de7.tar.gz
scummvm-rg350-b22aeafcc87d0eb8dc3504f88d388aa0540f7de7.tar.bz2
scummvm-rg350-b22aeafcc87d0eb8dc3504f88d388aa0540f7de7.zip
AUDIO: Do not add extrapath to SearchMan in MT-32 emu code.
At the point where the emulator is created extrapath should already been added to extrapath. If not, the check in checkDevice already failed and thus adding it would be too late anyway. It seems this was added in 805b21181ab7138da6960ade703b25716120fc29. The comment about it being a HACK has been removed in bbad3f333a9227ccb1de633a0fe92d9e01ad7bb3 but it's not clear to my why... At any rate, this should not be here.
Diffstat (limited to 'audio/softsynth')
-rw-r--r--audio/softsynth/mt32.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/audio/softsynth/mt32.cpp b/audio/softsynth/mt32.cpp
index 29f5e3577c..2a90b583f3 100644
--- a/audio/softsynth/mt32.cpp
+++ b/audio/softsynth/mt32.cpp
@@ -460,9 +460,6 @@ bool MT32EmuMusicPlugin::checkDevice(MidiDriver::DeviceHandle) const {
}
Common::Error MT32EmuMusicPlugin::createInstance(MidiDriver **mididriver, MidiDriver::DeviceHandle) const {
- if (ConfMan.hasKey("extrapath"))
- SearchMan.addDirectory("extrapath", ConfMan.get("extrapath"));
-
*mididriver = new MidiDriver_MT32(g_system->getMixer());
return Common::kNoError;