mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-30 04:50:55 +00:00
Clarify where debug prints go when using masterserver_debug
This commit is contained in:
parent
be3da445c3
commit
72852ab341
1 changed files with 12 additions and 2 deletions
|
@ -28,9 +28,11 @@ Documentation available here.
|
||||||
#define Blame( ... ) \
|
#define Blame( ... ) \
|
||||||
CONS_Printf("\x85" __VA_ARGS__)
|
CONS_Printf("\x85" __VA_ARGS__)
|
||||||
|
|
||||||
|
static void MasterServer_Debug_OnChange (void);
|
||||||
|
|
||||||
consvar_t cv_masterserver_debug = {
|
consvar_t cv_masterserver_debug = {
|
||||||
"masterserver_debug", "Off", CV_SAVE, CV_OnOff,
|
"masterserver_debug", "Off", CV_SAVE|CV_CALL, CV_OnOff,
|
||||||
NULL, 0, NULL, NULL, 0, 0, NULL/* C90 moment */
|
MasterServer_Debug_OnChange, 0, NULL, NULL, 0, 0, NULL/* C90 moment */
|
||||||
};
|
};
|
||||||
|
|
||||||
static int hms_started;
|
static int hms_started;
|
||||||
|
@ -618,3 +620,11 @@ HMS_set_api (char *api)
|
||||||
I_unlock_mutex(hms_api_mutex);
|
I_unlock_mutex(hms_api_mutex);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
MasterServer_Debug_OnChange (void)
|
||||||
|
{
|
||||||
|
/* TODO: change to 'latest-log.txt' for log files revision. */
|
||||||
|
if (cv_masterserver_debug.value)
|
||||||
|
CONS_Printf("Master server debug messages will appear in log.txt\n");
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue