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

Function sdmcPrefixed

common/script/checkpoint_api.cpp:111–114  ·  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

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

Callers 1

ckpt_sd_mkdirsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected