From f02aede58fe2b44b1eba101a09bdef4c99222d32 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Tue, 1 Mar 2022 04:00:19 +1000 Subject: [PATCH] Improve debug logging for render modules Signed-off-by: bones_was_here --- r_modules.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); } -- 2.39.2