[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108176":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":31,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":14,"lastSyncTime":35,"discoverSource":36},108176,"switch2mac","azmasm\u002Fswitch2mac","azmasm","Hermit (formerly switch2mac): a Mac app that turns your own Nintendo Switch and Switch 2 game dumps into native Apple silicon apps, with the best build for your Mac and a 3D game-case library. Not an emulator.","",null,"Swift",185,23,2,4,0,10,91,1,58.24,"Other",false,"main",true,[26,27,28,29,30],"apple-silicon","macos","mario-kart-world","metal","nintendo-switch-2-game","2026-11-23 18:39:53","2026-11-23 18:30:34","# switch2mac\n\n**Play your Nintendo Switch 2 games natively on your Mac.** switch2mac is a Mac app that turns **your own game dump** into a normal, double-clickable Mac game: choose the dump folder, press Build, play.\n\nIt is not an emulator. The game's own Arm code runs directly on Apple silicon, its system calls go to a native runtime, and its graphics are translated to Metal ahead of time. switch2mac picks the best build of each game for your Mac (chip and memory), based on how each build ran on players' Macs.\n\n## The switch2mac app\n\nA Mac app that builds your games for you: choose a dump folder, press **Build**, and the game lands in Applications. It keeps a **Library** of your games with their eShop banners (downloaded onto your Mac when it runs; none are stored here), shows **Your Mac** (chip, memory, macOS) and the build of each game that suits it, with how that build ran on other players' Macs.\n\n1. **Download** `switch2mac-macOS-arm64.zip` from [Releases](https:\u002F\u002Fgithub.com\u002Fazmasm\u002Fswitch2mac\u002Freleases\u002Flatest). Unzip it and move **switch2mac** to your Applications folder.\n2. **Open it.** The first time, macOS says it cannot verify the app (it is not signed with a paid Apple Developer ID): click **Done**, open **System Settings → Privacy & Security**, scroll down and click **Open Anyway**. You only do this once.\n3. **Follow the setup.** It checks your Mac and tells you what to install: **Xcode** (free, App Store) with its **Metal Toolchain**, and the **.NET 10 SDK** ([dot.net](https:\u002F\u002Fdot.net)). Python and the other build tools are inside the app.\n4. **Build a game.** On the **Builds** page, choose your game's dump folder. The app names the game, shows **Your Mac** and the build it recommends, and how that build ran on other Macs. Press **Build**. It takes 20 minutes to a few hours the first time, depending on the game, and needs 20-250 GB free while it builds (each game's page says).\n5. **Play** from the app's **Library** or from Applications. The very first start waits 1-3 minutes with no window while macOS checks the new app: wait, don't open it twice. In the game, **1** shows the performance overlay and **2** the settings.\n\nThe app keeps itself and its game list up to date: new games and fixes arrive when you open it.\n\n> **You need:** a Mac with Apple silicon and **macOS 26 or later**, and a dump of a game you own. switch2mac needs no keys and decrypts nothing. This repository holds no game content, and what the build makes must not be shared. See [LEGAL.md](LEGAL.md).\n\n## Games\n\n| Game | Version | Built with | Status | Page |\n|---|---|---|---|---|\n| Mario Kart World | 1.0.0 | switch2mac's engine ([switch2mac-engine](https:\u002F\u002Fgithub.com\u002Fazmasm\u002Fswitch2mac-engine)) | Plays start to finish: menus, Grand Prix, free roam, traffic, movies; ~58 fps in races on an M1 Max (Performance mode), 2560x1440. **16 GB Macs may not run it smoothly** (see below) | [games\u002Fmario-kart-world](games\u002Fmario-kart-world) |\n| Donkey Kong Bananza | update v458752 | [nxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative)'s builder | nxnative reports: plays at **60 fps on an M4 Pro** through the first level's opening areas (busy scenes dip to 30 for a few seconds). | [games\u002Fdonkey-kong-bananza](games\u002Fdonkey-kong-bananza) |\n| Pokémon Pokopia | v327680, 2.0.1 | [pokopia-native](https:\u002F\u002Fgithub.com\u002FxFractals\u002Fpokopia-native) by xFractals (default), or [nxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative)'s (2.0.1 only, hours of shader building) | pokopia-native reports: plays on its author's **M4 Mac** past the first wake-up with no issues found. A player reports **30 fps on a MacBook Air M3 (16 GB)** at 3440x1440, \"runs well\". | [games\u002Fpokemon-pokopia](games\u002Fpokemon-pokopia) |\n| Yoshi and the Mysterious Book | update v131072 (1.0.2) | [nxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative)'s builder | nxnative reports: plays at **60 fps on a 16 GB M6** through the first habitat, a save and a reload. About 133,000 shaders: a full build can take many hours. | [games\u002Fyoshi-and-the-mysterious-book](games\u002Fyoshi-and-the-mysterious-book) |\n| Splatoon Raiders | update v65536 | [nxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative)'s builder | nxnative reports: plays at **60 fps on an M4 Pro** through the first level. A player's **16 GB M2 Air** swapped and slowed to about 1 fps after 5 minutes (open). | [games\u002Fsplatoon-raiders](games\u002Fsplatoon-raiders) |\n| Hyrule Warriors: Age of Imprisonment | update v196608 | [nxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative)'s builder | nxnative reports: plays into the first field on a **16 GB M6** (frame median 16.6 ms, frequent long frames); battles not reached. A **Mac Studio M5 Max** froze the display (open). About 102,000 shaders. | [games\u002Fhyrule-warriors-age-of-imprisonment](games\u002Fhyrule-warriors-age-of-imprisonment) |\n| Fire Emblem Fortune's Weave | v131072 | [nxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative)'s builder | nxnative reports: plays through the first battle map at **60 fps** (120 offered; 30 as shipped). | [games\u002Ffire-emblem-fortunes-weave](games\u002Ffire-emblem-fortunes-weave) |\n| Mario Tennis Fever | update v327680 (1.1.1) | [nxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative)'s builder | nxnative reports: **60 fps on an M4 Pro** in Free Play matches. A player's **M3 Pro (18 GB)** gets 30-45 fps in Adventure exploration, with black outdoor textures (open). | [games\u002Fmario-tennis-fever](games\u002Fmario-tennis-fever) |\n| Star Fox | update v131072 | [nxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative)'s builder | nxnative reports: plays on an **M4 Pro (48 GB)** through the title, the prologue and the tutorial flight at **56-60 fps**. About 2,900 shaders, a short build. | [games\u002Fstar-fox](games\u002Fstar-fox) |\n| Kirby Air Riders | update v458752 | [nxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative)'s builder | Added from nxnative's profile: see [its notes](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative\u002Ftree\u002F8feddfeeb6268923d66b64a6e15efeb9b2901cf9\u002Fdm\u002Fgames\u002F040077201BE50000). | [games\u002Fkirby-air-riders](games\u002Fkirby-air-riders) |\n| The Legend of Zelda: Ocarina of Time | update v131072 | [nxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative)'s builder | Added from nxnative's profile: see [its notes](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative\u002Ftree\u002F6121fd75312cb4d1af404a01921d437741fea91e\u002Fdm\u002Fgames\u002F0400486024DEC000). | [games\u002Fthe-legend-of-zelda-ocarina-of-time](games\u002Fthe-legend-of-zelda-ocarina-of-time) |\n| Your game? | | | | [docs\u002Fporting.md](docs\u002Fporting.md) |\n\n> **Mario Kart World on a 16 GB Mac:** Macs with less than 24 GB now get nxnative's build of Mario Kart World automatically, which needs much less memory (about 11 GB): players report 60 fps on a 16 GB M6 and 36-40 fps on a 16 GB M1 Pro. switch2mac's own build can grow past 20 GB in long sessions, so it is kept for Macs with 24 GB or more ([both builds](games\u002Fmario-kart-world\u002FREADME.md#two-builds)).\n\n### Your dump folder\n\nThe files your dump tool wrote, for example:\n\n| Game | The folder you choose holds |\n|---|---|\n| Mario Kart World 1.0.0 | `exefs\u002F` and `romfs\u002F` (or `base\u002Fexefs` and `base\u002Fromfs`) |\n| Donkey Kong Bananza | `base\u002F` and `updates\u002F458752\u002F` (and `dlc\u002F`, if you have it) |\n| Pokémon Pokopia | `base\u002Fexefs` and `updates\u002F\u003Cversion>\u002F` |\n| Yoshi and the Mysterious Book | `base\u002F` and `updates\u002F131072\u002F` |\n| Splatoon Raiders | `base\u002F` and `updates\u002F65536\u002F` |\n| Hyrule Warriors: Age of Imprisonment | `base\u002F` and `updates\u002F196608\u002F` |\n| Fire Emblem Fortune's Weave | `exefs\u002F` and `romfs\u002F` |\n| Mario Tennis Fever | `base\u002F` and `updates\u002F327680\u002F` |\n| Star Fox | `base\u002F` and `updates\u002F131072\u002F` |\n| Kirby Air Riders | `base\u002F` and `updates\u002F458752\u002F` |\n| The Legend of Zelda: Ocarina of Time | `base\u002F` and `updates\u002F131072\u002F` |\n\nCopied off your console over FTP? Use **binary** transfer mode, or the files get damaged. A damaged dump is named in the app before you build.\n\n## What you get\n\n`\u003CGame>.app`: a normal, double-clickable Mac app that carries everything it needs (it keeps working after you delete the build folder). Every game's app works the same way:\n\n- Opens straight into the game, windowed or full screen (no settings window first).\n- **Key 1**: the performance overlay (top right). Compact (FPS + resolution) → detailed (30-second FPS graph, GPU time, frame time, CPU, memory, the game's frame pacing) → off.\n- **Key 2**: the settings panel (Esc closes it): the game's settings, the overlay and full screen change at once, the rest at the next launch.\n- Controllers (Xbox, PlayStation, Switch Pro and others macOS recognises) and the keyboard.\n- Saves in `~\u002FLibrary\u002FApplication Support\u002Fnxnative\u002F\u003Ctitle ID>\u002Fsave`, the log in `~\u002FLibrary\u002FLogs\u002Fnxnative\u002F\u003Ctitle ID>.log`.\n\n## Without the app: Terminal\n\nThe app runs the same script as these commands; they are the same for every game, and `build` reads which game the dump is. You also need **Python 3.12 or newer** and **git** (which comes with Xcode's command line tools).\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fazmasm\u002Fswitch2mac.git\n```\n\n```bash\ncd switch2mac\n```\n\n```bash\n.\u002Fswitch2mac.py setup\n```\n\n```bash\n.\u002Fswitch2mac.py build \"\u002Fpath\u002Fto\u002Fyour\u002Fdump\"\n```\n\n```bash\n.\u002Fswitch2mac.py install\n```\n\n- `setup` checks macOS, Xcode, Metal, .NET, Python and git, and stops with the exact fix for anything missing; then it makes a Python environment in `.venv` (it finds a new enough Python by itself: macOS's own is too old).\n- `build` writes only into `.\u002Fwork`. Mario Kart World is built step by step here ([its page](games\u002Fmario-kart-world\u002FREADME.md#build)). The other games: their engine is fetched once into `.\u002Fengines` at the version the game's `game.json` names, switch2mac's front end (overlay and key-2 settings) is added to it, and the engine's own builder makes the app.\n- `build` first checks there is enough free disk space for that game.\n- `install` moves the app to `\u002FApplications`, replacing an older one.\n- `.\u002Fswitch2mac.py builds \u003Cgame>` shows a game's builds, the one your Mac gets and why, and how each ran on players' Macs; `build --engine \u003Cid>` builds another one.\n\n### The first start waits\n\nAfter every install macOS scans the new app (tens of GB) before it lets it run: **1-3 minutes with no window and no Dock icon**. Wait; do not open it a second time. Later starts are immediate.\n\n## Controls\n\nControllers map by position (right button = A, bottom = B, top = X, left = Y; Nintendo pads by label). Keyboard: WASD left stick, arrow keys D-pad, J K U I = A B X Y, Q E = L R, Z C = ZL ZR, Return = +, Tab = −, F \u002F G stick presses, 1 overlay, 2 settings, ⌃⌘F full screen, ⌘Q quit. The mouse is the touchscreen.\n\n## Problems\n\n| What you see | What to do |\n|---|---|\n| \"Apple could not verify switch2mac\" (or a game) | **System Settings → Privacy & Security** → scroll down → **Open Anyway**. Only needed the first time. |\n| The app's setup says something is missing | Install what it names (Xcode, its Metal Toolchain, .NET 10), then open the app again. |\n| \"not enough free disk space\" | Free up the space it names (empty the Trash too), then try again. |\n| \"cut short or damaged\", or the build stops while reading the game's files | The dump was damaged while copying. Copy it off the console again in **binary** mode, and check the folder is the right one ([Your dump folder](#your-dump-folder)). |\n| \"title ... is not supported yet\" or \"not a version this profile knows\" | That folder is another game, or another version than the one listed above. |\n| The game doesn't open after installing | The first start waits 1-3 minutes with no window. Wait; don't open it twice. |\n| It stutters in a new place | It is building something for the first time; it is smooth after. When you close the game it may offer to **Send** what it built, so others don't stutter there (see Contributing). |\n\nStill stuck? Open an issue on this page with a screenshot and the game's log: in Finder, **Go → Go to Folder…** and paste `~\u002FLibrary\u002FLogs\u002Fnxnative`, then attach the `.log` file named after your game's title ID (Mario Kart World `0400C3F00006E000`, Donkey Kong Bananza `040074A01BF12000`, Pokémon Pokopia `0400A3A01EE4C000`). Never attach game files, the app or saves. Each game's own known issues are on its page.\n\n## How it works\n\nThe runtime loads the game's modules into memory, rewrites their system calls and SDK functions into calls to native code (file system, audio, input, threads, time), and implements NVN2, the Switch 2 graphics API, on Metal. Switch 2 shaders (NVIDIA Ampere code) are translated into Metal Shading Language ahead of time and compiled into Metal libraries.\n\nEach game is built with the engine its port was made with, pinned in its `game.json`: switch2mac's own engine ([switch2mac-engine](https:\u002F\u002Fgithub.com\u002Fazmasm\u002Fswitch2mac-engine), a fork of nxnative) for Mario Kart World, upstream [nxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative) for most games, and xFractals' [pokopia-native](https:\u002F\u002Fgithub.com\u002FxFractals\u002Fpokopia-native) for Pokopia. switch2mac adds the same front end to every one (overlay, settings, the shared shader list), and when a game has more than one build it picks the one that suits your Mac from players' reports. A daily check moves each game to its engine's newest version. The story of getting Mario Kart World from a black screen to 58 fps on switch2mac's engine: [docs\u002Fmario-kart-world.md](docs\u002Fmario-kart-world.md).\n\n## Repository layout\n\n| Path | What |\n|---|---|\n| `switch2mac.py` | what the app runs: setup, identify, build, install (and run, refresh, builds for developers) |\n| `games\u002F\u003Cgame>\u002F` | one folder per game: `game.json` (title ID, name, version; the engine and its commit for a game built with another engine, or several builds and which Mac gets which, as for Mario Kart World), its page (`README.md`: dump, build, settings, known issues) and, for Mario Kart World, the app's settings (`launcher.py`, `env.txt`) and the run-time shader list (`runtime_shaders.tsv`) |\n| `games\u002F\u003Cgame>\u002Fshader_list.tsv` | that game's shared shader list (see Contributing): one per game and build, for the engine its app is built with (a second build's: `shader_list-\u003Cbuild>.tsv`) |\n| `app\u002F` | the switch2mac app (SwiftPM; `app\u002Ftools\u002Fmake_app.sh` makes `app\u002Fbuild\u002Fswitch2mac.app`, `--bundle-tools` the download with Python and tools inside), adapted from [NX2Apple](https:\u002F\u002Fgithub.com\u002FLNPANDY\u002FNX2Apple) (MIT) |\n| `tools\u002Fshader_list.py` | the shared shader lists: stats, merge, collect the lists players send, ship each build's list |\n| `tools\u002Fengine\u002F` | switch2mac's front end for the games built with another engine: the overlay and settings panel (`s2m_ui.m`), the script that adds it to that engine (`patch.py`) and the one that moves those games to their build's newest commit (`update.py`) |\n| `tools\u002Fporting\u002F` | helpers for bringing up a game: run-time shader finder, NSO disassembly helper, pass tracer, performance summary |\n| `docs\u002F` | [porting.md](docs\u002Fporting.md) (bringing up a game), [mario-kart-world.md](docs\u002Fmario-kart-world.md) (how the first port was made) |\n| `AGENTS.md` | notes for AI coding assistants |\n| `CHANGELOG.md` | what changed, release by release |\n\nMade by the build, never committed: `work\u002F` (the build), `engines\u002F` (each game's engine, fetched at the commit its `game.json` names), `.venv\u002F`.\n\nMario Kart World's engine, switch2mac's own fork of nxnative with its Switch 2 work and the game's profile, is its own repository: [switch2mac-engine](https:\u002F\u002Fgithub.com\u002Fazmasm\u002Fswitch2mac-engine). Engine bugs and fixes (graphics, crashes, speed) go there; everything else here. Not sure? Open it here, and it is moved if it belongs there.\n\n## Contributing\n\n**Tell us how a game ran on your Mac.** Each game's reports table, and the build switch2mac picks for each Mac, come from players' reports. Use the [How it ran](https:\u002F\u002Fgithub.com\u002Fazmasm\u002Fswitch2mac\u002Fissues\u002Fnew?template=how-it-ran.yml) form: the game, your Mac (model, chip, memory), macOS, the frame rate and how far you played. Nothing about you is recorded. The form is read automatically: a maintainer checks the row it makes and adds it to the game's reports.\n\n**No code needed: send your shaders and pipelines.** Every game has its own shared shader list, `games\u002F\u003Cgame>\u002Fshader_list.tsv`: the shaders and Metal pipelines players have met, which each build prepares before the first frame so new places don't stutter. A list belongs to one game and to the engine its app is built with (its first line says which), so rows never mix between games. It holds identifiers only: no game data.\n\nYou don't need to do anything while you play. The app keeps what it built that the list lacks in `~\u002FLibrary\u002FApplication Support\u002Fnxnative\u002F\u003Ctitle ID>\u002Fshader-list-contribution.txt`, and each time 100 new rows have built up it asks when you close the game:\n\n- **Send** opens the **Shader list** form on GitHub and shows the file in Finder: drag it into the form and press **Create**. The game never uploads anything by itself.\n- **Remind me later** asks again after 100 more; **Stop reminding** never asks again.\n\n### Is sending safe?\n\nYes. The file is **a list of shader IDs, not shaders**: like sending library book numbers instead of the books.\n\n- Each line is a short code of letters and numbers, a fingerprint of a shader or of a render setup (which two shaders go together, colour formats, blending). Nobody can rebuild a shader, or anything of the game, from it.\n- When another player's app reads the list, it finds those codes among the shaders built from **their own** copy of the game and prepares them early. Nothing of yours reaches them but the codes.\n- It holds no game files, no shader code (the game's shaders the app saves in its `shdump` folder stay on your Mac), no saves, no file paths, and nothing about you or your Mac.\n- The list only takes lines of that exact form: anything else in a file is thrown away.\n- The game never uploads anything by itself: you see the file, you choose to send it, and it appears publicly on this repository under your GitHub account.\n\nMaintainers collect the forms with `.\u002Ftools\u002Fshader_list.py collect` (it checks every file belongs to that game and engine and refuses anything else), then `--apply --close`, and commit; later builds carry the new rows. `.\u002Ftools\u002Fshader_list.py stats` shows each list. This works the way [MacNativeGames](https:\u002F\u002Fgithub.com\u002Fly05010419\u002FMacNativeGames) shares Tears of the Kingdom's shader list, by ly05010419.\n\nOther improvements are welcome too: speed-ups, fixes, testing on other Macs, game updates and new games. Open an issue with the log and screenshots, or a pull request. Give speed-ups an off switch and check that the picture is unchanged. Never attach game files, shader dumps, Metal libraries, saves or built apps.\n\n## Licences and credits\n\nMIT. The engines are separate repositories under their own licences ([switch2mac-engine](https:\u002F\u002Fgithub.com\u002Fazmasm\u002Fswitch2mac-engine): MIT, except its `nx2_lower` (GPL-3.0-or-later) and third-party code). Built on nxnative by seedds, the Switch 2 patch series by potentialad9091, Eglantine's shader lowering, Ryujinx's shader translator and xFractals' pokopia-native; the shared pipeline list and the overlay \u002F settings panel design follow MacNativeGames by ly05010419. Details: [NOTICE.md](NOTICE.md), [LEGAL.md](LEGAL.md).\n","switch2mac 是一款将用户自有的 Nintendo Switch 2 游戏镜像（dump）原生编译为 Apple Silicon Mac 可执行程序的 macOS 应用。它不依赖模拟器，而是通过静态二进制翻译将游戏 ARM64 代码适配至 macOS，系统调用映射至原生运行时，图形指令预编译为 Metal。应用自动根据用户 Mac 的芯片型号、内存容量和 macOS 版本推荐最优构建版本，并提供图形化构建流程与游戏库管理。适用于拥有合法游戏 dump、运行 macOS 26+ 的 Apple Silicon Mac 用户进行本地高性能原生游玩。","2026-11-24 04:33:46","CREATED_QUERY"]