mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-11 04:51:13 +00:00
Add optional filtering to listmaps
CCMD output
This commit is contained in:
parent
493cc9af0d
commit
3a8ccda80f
1 changed files with 8 additions and 2 deletions
|
@ -2224,8 +2224,14 @@ CCMD(listmaps)
|
||||||
|
|
||||||
if (map != NULL)
|
if (map != NULL)
|
||||||
{
|
{
|
||||||
Printf("%s: '%s' (%s)\n", info->MapName.GetChars(), info->LookupLevelName().GetChars(),
|
if (argv.argc() == 1
|
||||||
Wads.GetWadName(Wads.GetLumpFile(map->lumpnum)));
|
|| CheckWildcards(argv[1], info->MapName.GetChars())
|
||||||
|
|| CheckWildcards(argv[1], info->LookupLevelName().GetChars())
|
||||||
|
|| CheckWildcards(argv[1], Wads.GetWadName(Wads.GetLumpFile(map->lumpnum))))
|
||||||
|
{
|
||||||
|
Printf("%s: '%s' (%s)\n", info->MapName.GetChars(), info->LookupLevelName().GetChars(),
|
||||||
|
Wads.GetWadName(Wads.GetLumpFile(map->lumpnum)));
|
||||||
|
}
|
||||||
delete map;
|
delete map;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue