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
+5 -5
View File
@@ -102,7 +102,7 @@ void Sky_LoadTexture (qmodel_t *mod, texture_t *mt)
if (mt->width != 256 || mt->height != 128)
{
Con_Warning ("Sky texture %s is %d x %d, expected 256 x 128\n", mt->name, mt->width, mt->height);
console::warn ("Sky texture %s is %d x %d, expected 256 x 128\n", mt->name, mt->width, mt->height);
if (mt->width < 2 || mt->height < 1)
return;
}
@@ -165,7 +165,7 @@ void Sky_LoadTextureQ64 (qmodel_t *mod, texture_t *mt)
if (mt->width != 32 || mt->height != 64)
{
Con_DWarning ("Q64 sky texture %s is %d x %d, expected 32 x 64\n", mt->name, mt->width, mt->height);
console::dev_warn ("Q64 sky texture %s is %d x %d, expected 32 x 64\n", mt->name, mt->width, mt->height);
if (mt->width < 1 || mt->height < 2)
return;
}
@@ -254,7 +254,7 @@ void Sky_LoadSkyBox (const char *name)
}
else
{
Con_Printf ("Couldn't load %s\n", filename);
console::info ("Couldn't load %s\n", filename);
skybox_textures[i] = notexture;
}
Hunk_FreeToLowMark (mark);
@@ -367,13 +367,13 @@ void Sky_SkyCommand_f (void)
switch (command::argc())
{
case 1:
Con_Printf("\"sky\" is \"%s\"\n", skybox_name);
console::info("\"sky\" is \"%s\"\n", skybox_name);
break;
case 2:
Sky_LoadSkyBox(command::argv(1)->c_str());
break;
default:
Con_Printf("usage: sky <skyname>\n");
console::info("usage: sky <skyname>\n");
}
}