mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Add optional filtering to listmaps
CCMD output
This commit is contained in:
parent
da97b51c35
commit
5aeda2b139
1 changed files with 8 additions and 3 deletions
|
@ -367,8 +367,14 @@ CCMD(listmaps)
|
|||
|
||||
if (map != NULL)
|
||||
{
|
||||
Printf("%s: '%s' (%s)\n", info->MapName.GetChars(), info->LookupLevelName().GetChars(),
|
||||
fileSystem.GetResourceFileName(fileSystem.GetFileContainer(map->lumpnum)));
|
||||
if (argv.argc() == 1
|
||||
|| CheckWildcards(argv[1], info->MapName.GetChars())
|
||||
|| CheckWildcards(argv[1], info->LookupLevelName().GetChars())
|
||||
|| CheckWildcards(argv[1], fileSystem.GetResourceFileName(fileSystem.GetFileContainer(map->lumpnum))))
|
||||
{
|
||||
Printf("%s: '%s' (%s)\n", info->MapName.GetChars(), info->LookupLevelName().GetChars(),
|
||||
fileSystem.GetResourceFileName(fileSystem.GetFileContainer(map->lumpnum)));
|
||||
}
|
||||
delete map;
|
||||
}
|
||||
}
|
||||
|
@ -405,4 +411,3 @@ CCMD(listsnapshots)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue