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

Function HostPathFromBankEntryName

engine/Poseidon/IO/PackFiles.cpp:61–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61static RString HostPathFromBankEntryName(RString name)
62{
63#ifndef _WIN32
64 std::string local = (const char*)name;
65 for (char& c : local)
66 {
67 if (c == '\\')
68 {
69 c = '/';
70 }
71 }
72 return RString(local.c_str());
73#else
74 return name;
75#endif
76}
77
78// use LZW compression on files of some types (e.g. .p3d)
79

Callers 1

CreateMethod · 0.85

Calls 1

RStringClass · 0.50

Tested by

no test coverage detected