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

Function StripPboExtension

apps/tools/Studio/StudioApp.cpp:239–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239static std::string StripPboExtension(const std::string& path)
240{
241 auto pos = path.rfind('.');
242 if (pos != std::string::npos)
243 {
244 std::string ext = path.substr(pos);
245 std::string extLower = ext;
246 std::transform(extLower.begin(), extLower.end(), extLower.begin(), ::tolower);
247 if (extLower == ".pbo")
248 return path.substr(0, pos);
249 }
250 return path;
251}
252
253static std::atomic<int> gExtractCounter{0};
254

Callers 6

playSoundEntryMethod · 0.70
extractPboFileMethod · 0.70
extractVirtualFileMethod · 0.70
startUsedByScanMethod · 0.70
updateCachedInfoMethod · 0.70
renderPreviewPanelMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected