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

Method GetScriptPath

Source/ResourceMan.cpp:425–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425std::string cResourceMan::GetScriptPath(const std::string& pType) const {
426
427 for (auto& ValidPath : mValidPaths) {
428 auto basepath = ValidPath + PathGenerate(pType, eScript);
429 if (FileExists(basepath))
430 return basepath;
431 }
432 return "";
433}
434
435std::string cResourceMan::GetTestPath(const sGameVersion* pVersion, const std::string pFile) const {
436 for (auto& ValidPath : mValidPaths) {

Callers 3

scriptCallMethod · 0.80
scriptsLoadFolderMethod · 0.80
RunMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected