MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / GetFilePath

Method GetFilePath

Source/ResourceMan.cpp:268–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268std::string cResourceMan::GetFilePath(const sGameVersion* pVersion, std::string pFile) const {
269 transform(pFile.begin(), pFile.end(), pFile.begin(), ::tolower);
270
271 auto VerFiles = mReleaseFiles.find(pVersion);
272 if (VerFiles == mReleaseFiles.end())
273 return "";
274
275 for (const auto& File : VerFiles->second) {
276 if (File.first == pFile)
277 return File.second;
278 }
279
280 return "";
281}
282
283std::string cResourceMan::PathGenerate(const std::string& pFile, eDataType pDataType) const {
284 std::stringstream filePathFinal;

Callers 2

getDataFilePathMethod · 0.80
Music_PlayMethod · 0.80

Calls 3

findMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected