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

Method GetResourceFileName

source/common/filesystem/source/filesystem.cpp:1323–1335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1321//==========================================================================
1322
1323const char *FileSystem::GetResourceFileName (int rfnum) const noexcept
1324{
1325 const char *name, *slash;
1326
1327 if ((uint32_t)rfnum >= Files.size())
1328 {
1329 return NULL;
1330 }
1331
1332 name = Files[rfnum]->GetFileName();
1333 slash = strrchr (name, '/');
1334 return (slash != nullptr && slash[1] != 0) ? slash+1 : name;
1335}
1336
1337//==========================================================================
1338//

Callers 7

STAT_UpdateFunction · 0.80
WriteSavegameFunction · 0.80
G_ValidateSavegameFunction · 0.80
FindMusicFunction · 0.80
System_CrashInfoFunction · 0.80
CCMDFunction · 0.80
InsertMapFunction · 0.80

Calls 2

GetFileNameMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected