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
+10 -10
View File
@@ -81,8 +81,8 @@ TexMgr_DescribeTextureModes_f -- report available texturemodes
static void TexMgr_DescribeTextureModes_f(void) {
int i;
for (i = 0; i < NUM_GLMODES; i++)
Con_SafePrintf(" %2i: %s\n", i + 1, glmodes[i].name);
Con_Printf("%i modes\n", i);
console::safe_print(" %2i: %s\n", i + 1, glmodes[i].name);
console::info("%i modes\n", i);
}
/*
@@ -144,7 +144,7 @@ static void TexMgr_TextureMode_f(convar *var) {
return;
}
Con_Printf("\"%s\" is not a valid texturemode\n", gl_texturemode.string);
console::info("\"%s\" is not a valid texturemode\n", gl_texturemode.string);
gl_texturemode.set(glmodes[glmode_idx].name);
}
@@ -183,7 +183,7 @@ static void TexMgr_Imagelist_f(void) {
gltexture_t *glt;
for (glt = active_gltextures; glt; glt = glt->next) {
Con_SafePrintf(" %4i x%4i %s\n", glt->width, glt->height, glt->name);
console::safe_print(" %4i x%4i %s\n", glt->width, glt->height, glt->name);
if (glt->flags & TEXPREF_MIPMAP)
texels += glt->width * glt->height * 4.0f / 3.0f;
else
@@ -191,7 +191,7 @@ static void TexMgr_Imagelist_f(void) {
}
mb = texels * (convar::variable_value("vid_bpp").value_or(0.0) / 8.0f) / 0x100000;
Con_Printf("%i textures %i pixels %1.1f megabytes\n", numgltextures, (int) texels, mb);
console::info("%i textures %i pixels %1.1f megabytes\n", numgltextures, (int) texels, mb);
}
/*
@@ -232,7 +232,7 @@ static void TexMgr_Imagedump_f(void) {
free(buffer);
}
Con_Printf("dumped %i textures to %s\n", numgltextures, dirname);
console::info("dumped %i textures to %s\n", numgltextures, dirname);
}
/*
@@ -322,7 +322,7 @@ void TexMgr_FreeTexture(gltexture_t *kill) {
return;
if (kill == NULL) {
Con_Printf("TexMgr_FreeTexture: NULL texture\n");
console::info("TexMgr_FreeTexture: NULL texture\n");
return;
}
@@ -348,7 +348,7 @@ void TexMgr_FreeTexture(gltexture_t *kill) {
}
}
Con_Printf("TexMgr_FreeTexture: not found\n");
console::info("TexMgr_FreeTexture: not found\n");
}
/*
@@ -1263,7 +1263,7 @@ void TexMgr_ReloadImage(gltexture_t *glt, int shirt, int pants) {
}
if (!data) {
invalid:
Con_Printf("TexMgr_ReloadImage: invalid source for %s\n", glt->name);
console::info("TexMgr_ReloadImage: invalid source for %s\n", glt->name);
Hunk_FreeToLowMark(mark);
return;
}
@@ -1280,7 +1280,7 @@ void TexMgr_ReloadImage(gltexture_t *glt, int shirt, int pants) {
glt->shirt = shirt;
glt->pants = pants;
} else
Con_Printf("TexMgr_ReloadImage: can't colormap a non SRC_INDEXED texture: %s\n", glt->name);
console::info("TexMgr_ReloadImage: can't colormap a non SRC_INDEXED texture: %s\n", glt->name);
}
if (glt->shirt > -1 && glt->pants > -1) {
//create new translation table