MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / archivePath

Function archivePath

3ds/source/script/scripthost.cpp:61–68  ·  view source on GitHub ↗

Script paths are archive-absolute; tolerate a missing leading slash.

Source from the content-addressed store, hash-verified

59
60 // Script paths are archive-absolute; tolerate a missing leading slash.
61 std::u16string archivePath(const char* path)
62 {
63 std::string p = path;
64 if (p.empty() || p[0] != '/') {
65 p = "/" + p;
66 }
67 return StringUtils::UTF8toUTF16(p.c_str());
68 }
69
70 class CtrScriptHost : public ScriptHost {
71 public:

Callers 3

savReadMethod · 0.85
savWriteMethod · 0.85
savDeleteMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected