(svn r10471) -Codechange: implement driver probing priority so that 'preferred' drivers are loaded first
This commit is contained in:
@@ -7,8 +7,6 @@
|
||||
|
||||
class SoundDriver_SDL: public SoundDriver {
|
||||
public:
|
||||
/* virtual */ bool CanProbe() { return true; }
|
||||
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
/* virtual */ void Stop();
|
||||
@@ -16,6 +14,7 @@ public:
|
||||
|
||||
class FSoundDriver_SDL: public SoundDriverFactory<FSoundDriver_SDL> {
|
||||
public:
|
||||
static const int priority = 5;
|
||||
/* virtual */ const char *GetName() { return "sdl"; }
|
||||
/* virtual */ const char *GetDescription() { return "SDL Sound Driver"; }
|
||||
/* virtual */ Driver *CreateInstance() { return new SoundDriver_SDL(); }
|
||||
|
Reference in New Issue
Block a user