From: bones_was_here Date: Mon, 28 Feb 2022 18:00:19 +0000 (+1000) Subject: Improve debug logging for render modules X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f02aede58fe2b44b1eba101a09bdef4c99222d32;p=xonotic%2Fdarkplaces.git Improve debug logging for render modules Signed-off-by: bones_was_here --- diff --git a/r_modules.c b/r_modules.c index 90497714..96e33e2f 100644 --- a/r_modules.c +++ b/r_modules.c @@ -55,9 +55,10 @@ void R_Modules_Start(void) continue; if (rendermodule[i].active) { - Con_Printf ("R_StartModules: module \"%s\" already active\n", rendermodule[i].name); + Con_Printf ("R_Modules_Start: module \"%s\" already active\n", rendermodule[i].name); continue; } + Con_DPrintf("Starting render module \"%s\"\n", rendermodule[i].name); rendermodule[i].active = 1; rendermodule[i].start(); } @@ -73,6 +74,7 @@ void R_Modules_Shutdown(void) continue; if (!rendermodule[i].active) continue; + Con_DPrintf("Stopping render module \"%s\"\n", rendermodule[i].name); rendermodule[i].active = 0; rendermodule[i].shutdown(); } @@ -81,7 +83,7 @@ void R_Modules_Shutdown(void) void R_Modules_Restart_f(cmd_state_t *cmd) { CL_StartVideo(); - Con_Print("restarting renderer\n"); + Con_Print("Restarting renderer\n"); R_Modules_Shutdown(); R_Modules_Start(); }