| 294 | } |
| 295 | |
| 296 | Result romfsMountFromCurrentProcess(const char *name) |
| 297 | { |
| 298 | // Set up FS_Path structures |
| 299 | u8 zeros[0xC] = {0}; |
| 300 | FS_Path archPath = { PATH_EMPTY, 1, "" }; |
| 301 | FS_Path filePath = { PATH_BINARY, sizeof(zeros), zeros }; |
| 302 | |
| 303 | // Open the RomFS file and mount it |
| 304 | Handle fd = 0; |
| 305 | Result rc = FSUSER_OpenFileDirectly(&fd, ARCHIVE_ROMFS, archPath, filePath, FS_OPEN_READ, 0); |
| 306 | if (R_SUCCEEDED(rc)) |
| 307 | rc = romfsMountFromFile(fd, 0, name); |
| 308 | |
| 309 | return rc; |
| 310 | } |
| 311 | |
| 312 | Result romfsMountFromTitle(u64 tid, FS_MediaType mediatype, const char* name) |
| 313 | { |
no test coverage detected