From b22aeafcc87d0eb8dc3504f88d388aa0540f7de7 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 3 Nov 2013 19:20:17 +0100 Subject: 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. --- audio/softsynth/mt32.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'audio/softsynth') 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; -- cgit v1.2.3