diff options
author | peter1138 <peter1138@openttd.org> | 2007-07-07 20:31:23 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-07-07 20:31:23 +0000 |
commit | 8b81cdd2a602d63b6b7f595383cedecf54046650 (patch) | |
tree | 0bd6f98a4074b190b9e2d63d8410f76306430377 /src/sound/null_s.h | |
parent | 0543657b75fe3191d4232c2ebbac80f8b860617f (diff) | |
download | openttd-8b81cdd2a602d63b6b7f595383cedecf54046650.tar.xz |
(svn r10471) -Codechange: implement driver probing priority so that 'preferred' drivers are loaded first
Diffstat (limited to 'src/sound/null_s.h')
-rw-r--r-- | src/sound/null_s.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sound/null_s.h b/src/sound/null_s.h index 2f5c79841..27b8d8980 100644 --- a/src/sound/null_s.h +++ b/src/sound/null_s.h @@ -7,8 +7,6 @@ class SoundDriver_Null: public SoundDriver { public: - /* virtual */ bool CanProbe() { return false; } - /* virtual */ const char *Start(const char * const *param) { return NULL; } /* virtual */ void Stop() { } @@ -16,6 +14,7 @@ public: class FSoundDriver_Null: public SoundDriverFactory<FSoundDriver_Null> { public: + static const int priority = 0; /* virtual */ const char *GetName() { return "null"; } /* virtual */ const char *GetDescription() { return "Null Sound Driver"; } /* virtual */ Driver *CreateInstance() { return new SoundDriver_Null(); } |