From 8905763c01d65a0794c55c1b27911d0fc9995eec Mon Sep 17 00:00:00 2001 From: Denis Pauk Date: Thu, 2 Aug 2018 13:55:39 +0300 Subject: [PATCH] show * mark for used models/images in modellist/imagelist --- src/client/refresh/soft/sw_image.c | 12 ++++++++++-- src/client/refresh/soft/sw_model.c | 10 +++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/client/refresh/soft/sw_image.c b/src/client/refresh/soft/sw_image.c index c3e792e1..783ff754 100644 --- a/src/client/refresh/soft/sw_image.c +++ b/src/client/refresh/soft/sw_image.c @@ -43,6 +43,13 @@ R_ImageList_f (void) for (i=0, image=r_images ; iregistration_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); } diff --git a/src/client/refresh/soft/sw_model.c b/src/client/refresh/soft/sw_model.c index b3a798ae..b5ce63b8 100644 --- a/src/client/refresh/soft/sw_model.c +++ b/src/client/refresh/soft/sw_model.c @@ -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);