mkdir wants an "sdmc:"-prefixed POSIX path (matching the boot bootstrap); stat/fopen accept the bare one.
| 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 | { |