mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-23 04:52:07 +00:00
show * mark for used models/images in modellist/imagelist
This commit is contained in:
parent
1e3e853bc7
commit
8905763c01
2 changed files with 19 additions and 3 deletions
|
@ -43,6 +43,13 @@ R_ImageList_f (void)
|
|||
|
||||
for (i=0, image=r_images ; i<numr_images ; i++, image++)
|
||||
{
|
||||
char *in_use = "";
|
||||
|
||||
if (image->registration_sequence == registration_sequence)
|
||||
{
|
||||
in_use = "*";
|
||||
}
|
||||
|
||||
if (image->registration_sequence <= 0)
|
||||
continue;
|
||||
texels += image->width*image->height;
|
||||
|
@ -65,8 +72,9 @@ R_ImageList_f (void)
|
|||
break;
|
||||
}
|
||||
|
||||
R_Printf(PRINT_ALL, " %3i %3i : %s\n",
|
||||
image->width, image->height, image->name);
|
||||
R_Printf(PRINT_ALL, " %3i %3i : %s %s\n",
|
||||
image->width, image->height, image->name,
|
||||
in_use);
|
||||
}
|
||||
R_Printf(PRINT_ALL, "Total texel count: %i\n", texels);
|
||||
}
|
||||
|
|
|
@ -61,9 +61,17 @@ Mod_Modellist_f (void)
|
|||
R_Printf(PRINT_ALL,"Loaded models:\n");
|
||||
for (i=0, mod=mod_known ; i < mod_numknown ; i++, mod++)
|
||||
{
|
||||
char *in_use = "";
|
||||
|
||||
if (mod->registration_sequence == registration_sequence)
|
||||
{
|
||||
in_use = "*";
|
||||
}
|
||||
|
||||
if (!mod->name[0])
|
||||
continue;
|
||||
R_Printf(PRINT_ALL, "%8i : %s\n",mod->extradatasize, mod->name);
|
||||
R_Printf(PRINT_ALL, "%8i : %s %s\n",
|
||||
mod->extradatasize, mod->name, in_use);
|
||||
total += mod->extradatasize;
|
||||
}
|
||||
R_Printf(PRINT_ALL, "Total resident: %i\n", total);
|
||||
|
|
Loading…
Reference in a new issue