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

Function CanonicalBankEntryName

engine/Poseidon/IO/PackFiles.cpp:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48static RString CanonicalBankEntryName(const char* name)
49{
50 std::string normalized = name ? name : "";
51 for (char& c : normalized)
52 {
53 if (c == '/')
54 {
55 c = '\\';
56 }
57 }
58 return RString(normalized.c_str());
59}
60
61static RString HostPathFromBankEntryName(RString name)
62{

Callers 1

ScanDirMethod · 0.85

Calls 1

RStringClass · 0.50

Tested by

no test coverage detected