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
Renumber the patch to 0079
v0lumehi01f606b31efe
diff --cc frontend-ios/Sources/ShellHost/EngineLaunchPlan.swiftindex c0878749,039c6ff6..6e410650--- a/frontend-ios/Sources/ShellHost/EngineLaunchPlan.swift+++ b/frontend-ios/Sources/ShellHost/EngineLaunchPlan.swift@@@ -24,8 -24,8 +24,9 @@@ public struct EngineLaunchPlan: Equatab/// (#557), read from `game.appFolder` when it is nil. A key in the game's file wins over the shared file, and the launch/// environment (the player's settings, the paths above) wins over both. The game's own `mods/` folder sets/// `DM_ROMFS_OVERLAY` (`GameMods`) when the game's env file does not, and it wins over the shared file. The order is: launch- /// environment, game env.txt, game mods folder, shared env.txt. Automatic `DM_PSO_BUNDLE` discovery is a fallback- /// after both env files, so an explicit archive path or `off` can override it.+ /// environment, game env.txt, game mods folder, shared env.txt, framework dm/env.txt.- /// The framework file carries build-time defaults such as CPU BC decoding for older GPUs (#719).++ /// The framework file carries build-time defaults such as CPU BC decoding for older GPUs (#719). Automatic `DM_PSO_BUNDLE`++ /// discovery is a fallback after all env files, so an explicit archive path or `off` can override it.public static func make(game: LaunchableGame, appResources: URL, documents: URL, envFileText: String?, gameEnvFileText: String? = nil,fileManager fm: FileManager = .default) -> EngineLaunchPlan {let manifest = game.manifest, fw = game.frameworkURL, gdir = game.appFolder@@@ -70,8 -69,10 +70,11 @@@env["DM_ROMFS_OVERLAY"] = overlay}apply(envFileText)+ apply(fm.contents(atPath: fw.appendingPathComponent("dm/env.txt").path).flatMap { String(data: $0, encoding: .utf8) })env["DM_ENV_FILE_KEYS"] = fromFile.joined(separator: " ")+ if env["DM_PSO_BUNDLE"] == nil {+ if isDirectory(ownPSO) { env["DM_PSO_BUNDLE"] = ownPSO.path } else if isDirectory(fwPSO) { env["DM_PSO_BUNDLE"] = fwPSO.path }+ }return EngineLaunchPlan(environment: env,diff --cc patches/0079-ios-carry-cpu-bc-compatibility-through-game-pack.patchindex b4feb5dd,00000000..b4feb5ddmode 100644,000000..100644--- a/patches/0079-ios-carry-cpu-bc-compatibility-through-game-pack.patch+++ b/patches/0079-ios-carry-cpu-bc-compatibility-through-game-pack.patchdiff --cc patches/seriesindex 659ea8c7,5e4f4158..1bbf2165--- a/patches/series+++ b/patches/series@@@ -45,4 -45,4 +45,5 @@@0075-front-mac-hide-the-pointer-before-the-game-takes.patch0076-host-read-embedded-sections-from-the-image-that.patch0077-ios-shell-link-the-host-into-each-game-s-framewo.patch- 0078-ios-carry-cpu-bc-compatibility-through-game-pack.patch+ 0078-document-the-fork-touch-controls-so-environment.patch++0079-ios-carry-cpu-bc-compatibility-through-game-pack.patch