Overhaul to console structure, a bit

This commit is contained in:
iikorni
2026-08-30 00:50:23 -05:00
parent de75b014b3
commit 216dd1aecd
70 changed files with 2081 additions and 2260 deletions
+6 -6
View File
@@ -273,7 +273,7 @@ void R_TranslateNewPlayerSkin(int playernum) {
//TODO: move these tests to the place where skinnum gets received from the server
if (skinnum < 0 || skinnum >= paliashdr->numskins) {
Con_DPrintf("(%d): Invalid player skin #%d\n", playernum, skinnum);
console::debug("(%d): Invalid player skin #%d\n", playernum, skinnum);
skinnum = 0;
}
@@ -414,7 +414,7 @@ void R_TimeRefresh_f(void) {
float start, stop, time;
if (cls.state != ca_connected) {
Con_Printf("Not connected to a server\n");
console::info("Not connected to a server\n");
return;
}
@@ -429,7 +429,7 @@ void R_TimeRefresh_f(void) {
glFinish();
stop = Sys_DoubleTime();
time = stop - start;
Con_Printf("%f seconds (%f fps)\n", time, 128 / time);
console::info("%f seconds (%f fps)\n", time, 128 / time);
}
void D_FlushCaches(void) {
@@ -448,7 +448,7 @@ static bool GL_CheckShader(GLuint shader) {
memset(infolog, 0, sizeof(infolog));
GL_GetShaderInfoLogFunc(shader, sizeof(infolog), NULL, infolog);
Con_Warning("GLSL program failed to compile: %s", infolog);
console::warn("GLSL program failed to compile: %s", infolog);
return false;
}
@@ -465,7 +465,7 @@ static bool GL_CheckProgram(GLuint program) {
memset(infolog, 0, sizeof(infolog));
GL_GetProgramInfoLogFunc(program, sizeof(infolog), NULL, infolog);
Con_Warning("GLSL program failed to link: %s", infolog);
console::warn("GLSL program failed to link: %s", infolog);
return false;
}
@@ -485,7 +485,7 @@ GLint GL_GetUniformLocation(GLuint *programPtr, const char *name) {
location = GL_GetUniformLocationFunc(*programPtr, name);
if (location == -1) {
Con_Warning("GL_GetUniformLocationFunc %s failed\n", name);
console::warn("GL_GetUniformLocationFunc %s failed\n", name);
*programPtr = 0;
}
return location;