summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-27 19:57:12 +0000
committertron <tron@openttd.org>2005-07-27 19:57:12 +0000
commit5821529859b84d9ba264bf8b0b9267c900ed4103 (patch)
tree2d81a3e658bac637585e76cd5f1b80266f4b05b6 /debug.c
parent6c52a8629d0b94d72e20809818cb0fd5c3097c93 (diff)
downloadopenttd-5821529859b84d9ba264bf8b0b9267c900ed4103.tar.xz
(svn r2728) -Fix/Feature: Change the driver probing algorithm
Instead of trying to start a single driver and bailing out if that fails, try to initialise one by one and use the first one which succeeds. This should fix problems on machines with no sound card, where -s null had to be specified manually.
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/debug.c b/debug.c
index 3b32e4f0e..c97e5f0a3 100644
--- a/debug.c
+++ b/debug.c
@@ -10,6 +10,7 @@
#include "string.h"
int _debug_ai_level;
+int _debug_driver_level;
int _debug_grf_level;
int _debug_map_level;
int _debug_misc_level;
@@ -45,6 +46,7 @@ typedef struct DebugLevel {
#define DEBUG_LEVEL(x) { #x, &_debug_##x##_level }
static const DebugLevel debug_level[] = {
DEBUG_LEVEL(ai),
+ DEBUG_LEVEL(driver),
DEBUG_LEVEL(grf),
DEBUG_LEVEL(map),
DEBUG_LEVEL(misc),