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

Method FindVersionPath

Source/ResourceMan.cpp:251–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251std::string cResourceMan::FindVersionPath(const sGameVersion* pVersion) const {
252
253 for (auto Release = mReleasePath.begin(); Release != mReleasePath.end(); ++Release) {
254
255 if (Release->first->mRelease == pVersion->mRelease) {
256 if (Release->first->mGame == pVersion->mGame) {
257 if (Release->first->mPlatform == pVersion->mPlatform || pVersion->mPlatform == ePlatform::Any) {
258
259 return Release->second;
260 }
261 }
262 }
263 }
264
265 return "";
266}
267
268std::string cResourceMan::GetFilePath(const sGameVersion* pVersion, std::string pFile) const {
269 transform(pFile.begin(), pFile.end(), pFile.begin(), ::tolower);

Callers 2

getDataPathMethod · 0.80
getDataFilePathMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected