From 8b81cdd2a602d63b6b7f595383cedecf54046650 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 7 Jul 2007 20:31:23 +0000 Subject: (svn r10471) -Codechange: implement driver probing priority so that 'preferred' drivers are loaded first --- src/sound/sound_driver.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sound/sound_driver.hpp') diff --git a/src/sound/sound_driver.hpp b/src/sound/sound_driver.hpp index de1a19ac8..04c9e9224 100644 --- a/src/sound/sound_driver.hpp +++ b/src/sound/sound_driver.hpp @@ -14,7 +14,7 @@ class SoundDriverFactoryBase: public DriverFactoryBase { template class SoundDriverFactory: public SoundDriverFactoryBase { public: - SoundDriverFactory() { this->RegisterDriver(((T *)this)->GetName(), Driver::DT_SOUND); } + SoundDriverFactory() { this->RegisterDriver(((T *)this)->GetName(), Driver::DT_SOUND, ((T *)this)->priority); } /** * Get the long, human readable, name for the Driver-class. -- cgit v1.2.3-54-g00ecf