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

Function sdmcPrefixed

common/script/checkpoint_api.cpp:112–115  ·  view source on GitHub ↗

mkdir wants an "sdmc:"-prefixed POSIX path (matching the boot bootstrap); stat/fopen accept the bare one.

Source from the content-addressed store, hash-verified

110 // mkdir wants an "sdmc:"-prefixed POSIX path (matching the boot bootstrap);
111 // stat/fopen accept the bare one.
112 std::string sdmcPrefixed(const std::string& path)
113 {
114 return path.rfind("sdmc:", 0) == 0 ? path : "sdmc:" + path;
115 }
116
117 ScriptUiBridge& bridge(void)
118 {

Callers 1

ckpt_sd_mkdirsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected