MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / StripPboExt

Function StripPboExt

engine/PoseidonFormats/PoseidonFormats.cpp:470–477  ·  view source on GitHub ↗

Strip .pbo extension (QFBank::open appends it)

Source from the content-addressed store, hash-verified

468
469// Strip .pbo extension (QFBank::open appends it)
470static std::string StripPboExt(const std::string& path) {
471 if (path.size() >= 4) {
472 auto ext = path.substr(path.size() - 4);
473 for (auto& c : ext) c = static_cast<char>(tolower(c));
474 if (ext == ".pbo") return path.substr(0, path.size() - 4);
475 }
476 return path;
477}
478
479PF_API PF_HANDLE pf_pbo_open(const char* path) {
480 ClearError();

Callers 1

pf_pbo_openFunction · 0.70

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected