mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
5fd69294ee
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.
38 lines
831 B
C
38 lines
831 B
C
/* $Id$ */
|
|
|
|
#ifndef DEBUG_H
|
|
#define DEBUG_H
|
|
|
|
#ifdef NO_DEBUG_MESSAGES
|
|
#define DEBUG(name, level)
|
|
#else
|
|
#define DEBUG(name, level) if (level == 0 || _debug_ ## name ## _level >= level) debug
|
|
|
|
extern int _debug_ai_level;
|
|
extern int _debug_driver_level;
|
|
extern int _debug_grf_level;
|
|
extern int _debug_map_level;
|
|
extern int _debug_misc_level;
|
|
extern int _debug_ms_level;
|
|
extern int _debug_net_level;
|
|
extern int _debug_spritecache_level;
|
|
extern int _debug_oldloader_level;
|
|
extern int _debug_pbs_level;
|
|
extern int _debug_ntp_level;
|
|
#ifdef GPMI
|
|
extern int _debug_gpmi_level;
|
|
#endif /* GPMI */
|
|
extern int _debug_npf_level;
|
|
#endif
|
|
|
|
void CDECL debug(const char *s, ...);
|
|
|
|
void SetDebugString(const char *s);
|
|
const char *GetDebugString(void);
|
|
|
|
#ifdef GPMI
|
|
void gpmi_debug_openttd(int level, char *s);
|
|
#endif /* GPMI */
|
|
|
|
#endif
|