]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Improve debug logging for render modules
authorbones_was_here <bones_was_here@xa.org.au>
Mon, 28 Feb 2022 18:00:19 +0000 (04:00 +1000)
committerbones_was_here <bones_was_here@xa.org.au>
Mon, 28 Feb 2022 18:42:31 +0000 (04:42 +1000)
Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
r_modules.c

index 904977146ece0e69771e7ebe2cb1a1838c4b5650..96e33e2f4761fe5908e85aa9257bf37b4242f19d 100644 (file)
@@ -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();
 }