MCPcopy Create free account
hub / github.com/ZDoom/Raze / CCMD

Function CCMD

source/core/mapinfo.cpp:58–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57
58CCMD(listmaps)
59{
60 for (auto& map : mapList)
61 {
62 int lump = fileSystem.FindFile(map->fileName.GetChars());
63 if (lump >= 0)
64 {
65 int rfnum = fileSystem.GetFileContainer(lump);
66 Printf("%s - %s (%s)\n", map->LabelName(), map->DisplayName(), fileSystem.GetResourceFileName(rfnum));
67 }
68 else
69 {
70 Printf("%s - %s (defined but does not exist)\n", map->fileName.GetChars(), map->DisplayName());
71 }
72 }
73}
74
75MapRecord *FindMapByName(const char *nm)
76{

Callers

nothing calls this directly

Calls 7

PrintfFunction · 0.85
FindFileMethod · 0.80
GetFileContainerMethod · 0.80
LabelNameMethod · 0.80
DisplayNameMethod · 0.80
GetResourceFileNameMethod · 0.80
GetCharsMethod · 0.45

Tested by

no test coverage detected