Script paths are archive-absolute; tolerate a missing leading slash.
| 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: |