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
import Foundation
/// Where the eShop banners are cached (the launcher's `ArtworkStore` downloads them). The shared app's install reads them to put a
/// game's banner into its framework, so the folder and the lookup are here, with no AppKit.
package enum BannerCache {
package static let directory = FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask)[0]
.appendingPathComponent("NS Port Builder/artwork")
/// Where a title's banner is kept; nil while it has none.
package static func cached(_ titleID: String, in directory: URL = BannerCache.directory) -> URL? {
let url = directory.appendingPathComponent(titleID.uppercased() + ".jpg")
return FileManager.default.fileExists(atPath: url.path) ? url : nil
}
}