Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.
Swift apple-siliconcustom-formathomebrewiosipaipadipadosiphonemetalnative-portnintendo-switchnxnativeromfsswitch-games
Fix the Animal Crossing iPhone crash: archive stats carried a leading slash
LNPANDYabe35a3cb2e1
diff --git a/dm/host/hle_fs.c b/dm/host/hle_fs.cindex aff4505d..3a754ad1 100644--- a/dm/host/hle_fs.c+++ b/dm/host/hle_fs.c@@ -819,8 +819,8 @@ HLE_FORCE("_ZN2nn2fs15RenameDirectoryEPKcS2_", "fsp-srv → rename(2) of a direcHLE_FORCE("_ZN2nn2fs12GetEntryTypeEPNS0_18DirectoryEntryTypeEPKc", "fsp-srv → stat(2)", Result, h_fs_GetEntryType, int32_t *out, const char *path) {HP(path); struct stat st;if (ROMFSARC_IS_SYNTH(hp)) { // archive entry or directory, from the index- const char *rel = ROMFSARC_SYNTH_REL(hp);- uint32_t sh; uint64_t of, szf;+ const char *rel = arc_rel(hp); // no leading slash: the index stores relpaths (a plain+ uint32_t sh; uint64_t of, szf; // stat() tolerates one, the index lookup does not)if (romfsarc_stat_file(rel, &sh, &of, &szf)) { *out = ENT_FILE; return RES_OK; }if (romfsarc_is_dir(rel)) { *out = ENT_DIR; return RES_OK; }errno = ENOENT; return err_res("stat", hp);