Skip to content

Commit

Permalink
Pass wildcard as regular argument to ‘imagelist’.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet committed Nov 1, 2022
1 parent 35697a3 commit daea9e7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/refresh/images.c
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,6 @@ static const cmd_option_t o_imagelist[] = {
{ "P", "placeholder", "list placeholder images" },
{ "s", "sprites", "list sprites" },
{ "w", "walls", "list walls" },
{ "W:string", "wildcard", "list images matching wildcard" },
{ "y", "skies", "list skies" },
{ NULL }
};
Expand Down Expand Up @@ -1533,10 +1532,9 @@ static void IMG_List_f(void)
case 's': mask |= 1 << IT_SPRITE; break;
case 'w': mask |= 1 << IT_WALL; break;
case 'y': mask |= 1 << IT_SKY; break;
case 'W': wildcard = cmd_optarg; break;
case 'P': placeholder = true; break;
case 'h':
Cmd_PrintUsage(o_imagelist, NULL);
Cmd_PrintUsage(o_imagelist, "[wildcard]");
Com_Printf("List registered images.\n");
Cmd_PrintHelp(o_imagelist);
Com_Printf(
Expand All @@ -1558,6 +1556,9 @@ static void IMG_List_f(void)
}
}

if (cmd_optind < Cmd_Argc())
wildcard = Cmd_Argv(cmd_optind);

Com_Printf("------------------\n");
texels = count = 0;

Expand Down

0 comments on commit daea9e7

Please sign in to comment.