MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ToNativePath

Method ToNativePath

common/FileSystem.cpp:473–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473std::string Path::ToNativePath(const std::string_view path)
474{
475 std::string ret;
476 PathAppendString(ret, path);
477
478 // remove trailing slashes
479 if (ret.length() > 1)
480 {
481 while (ret.back() == FS_OSPATH_SEPARATOR_CHARACTER)
482 ret.pop_back();
483 }
484
485 return ret;
486}
487
488void Path::ToNativePath(std::string* path)
489{

Callers

nothing calls this directly

Calls 4

PathAppendStringFunction · 0.85
lengthMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected