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

Method IsFileInFolder

source/common/filesystem/source/resourcefile.cpp:104–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102//==========================================================================
103
104bool FResourceFile::IsFileInFolder(const char* const resPath)
105{
106 // Checks a special case when <somefile.wad> was put in
107 // <myproject> directory inside <myproject.zip>
108
109 const auto dirName = ExtractBaseName(FileName);
110 const auto fileName = ExtractBaseName(resPath, true);
111 const std::string filePath = dirName + '/' + fileName;
112
113 return 0 == stricmp(filePath.c_str(), resPath);
114}
115
116void FResourceFile::CheckEmbedded(uint32_t entry, LumpFilterInfo* lfi)
117{

Callers

nothing calls this directly

Calls 3

ExtractBaseNameFunction · 0.85
stricmpFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected