BOTWRecomp

BOTWRecomp is a native macOS port of The Legend of Zelda: Breath of the Wild built by static recompilation, translating game code to C and compiling it for Apple Silicon.

README

BOTWRecomp: Breath of the Wild, native for Apple Silicon Macs

Screenshot 2026-11-07 at 11 25 25 PM

Screenshot 2026-11-07 at 1 48 57 AM

Screenshot 2026-11-07 at 1 49 10 AM

A native macOS build of The Legend of Zelda: Breath of the Wild (Wii U, update v208 / game version 1.5.0), made by static recompilation: the game's own PowerPC code is translated to C ahead of time and compiled for Apple Silicon, Cafe OS is reimplemented natively, and GX2 graphics go straight to Metal. There is no emulator in between.

You need your own copy of the game. This repository contains no game code, executables, artwork, sound or video. The installer takes the files from your dump and builds the app on your Mac. Nothing it builds is meant to be shared.

This project is not affiliated with or endorsed by Nintendo. The Legend of Zelda and Breath of the Wild are trademarks of Nintendo.

Status: Fully playable. It boots, plays the intro and the Great Plateau, with menus, NPCs, sound, movie cutscenes, saving and the DLC, at the game's own 30 fps, 60 fps, 120 fps and uncapped on an M4 MacBook Air. Expect rough edges: stutter the first time new effects are drawn (shaders are compiled then, and cached).

Play it on your Mac

  1. Have your own dump of the game (see below).
  2. Download BOTWRecomp-<version>.dmg from the latest release, open it and double-click BOTWRecomp Installer. The app is not notarized: the first time, open it, click Done, then System Settings → Privacy & Security → Open Anyway.
  3. Click Find in a Folder… and choose the folder with your dump (or pick the base game, update and DLC one by one; each one is checked). Optionally import a save, for example from Cemu.
  4. Click Build Breath of the Wild. It takes about 5 minutes; then the game is in ~/Applications (or wherever you chose), and Open Game starts it.

The installer holds no game files: it builds the game on your Mac from your copy. Details and troubleshooting: tools/installer/README.md.

What works

  • Native Apple Silicon app, signed on your Mac, with the icon from your dump; saves, settings and screenshots in ~/Library/Application Support/BotW like any Mac game, logs in ~/Library/Logs/BotW.
  • Metal renderer (GX2 → Metal, shaders translated with Cemu's Latte decompiler) with a shader cache, so a second visit doesn't stutter.
  • Sound, movie cutscenes (H.264 on VideoToolbox), saving, the DLC (The Master Trials and The Champions' Ballad).
  • Controllers through macOS GameController (Xbox, PlayStation, Switch Pro and Joy-Con, with Nintendo buttons by position), keyboard and mouse.
  • Settings overlay: graphics, audio (master volume), controls, and cheats you can switch on and off while playing (infinite arrows, unbreakable weapons and shields, champion abilities without recharge, infinite hearts and stamina, no Blood Moon, no random enemy spawns, a weather of your choice, Master Cycle Zero fuel and summoning anywhere, amiibo more than once a day).
  • Time played, in the Home menu and Settings > Language & About. It costs nothing while you play (the time is written when the game saves and when you quit). To carry over hours from another version of the game, set the earlier line (seconds) of ~/Library/Application Support/BotW/playtime.txt.
  • Save import from Cemu (mlc01/usr/save/00050000/101c9400/user/80000001; 101c9500 for the European release). A Switch save (Ryujinx or a real console) can be converted to the Wii U format first with the BotW Save Converter, a web page that runs in your browser and converts either way.
  • Content mods made for the Wii U version: put each one in ~/Library/Application Support/BotW/Mods, as downloaded (a BCML .bnp, or a .zip, .7z or .rar) or as a folder (a Cemu graphic pack with content/aoc folders, an SDCafiine folder, or just content/aoc), and switch it on in Settings > Mods. Packs that several mods change are merged file by file, BCML's merge data is applied (parameters, animation lists, events, game data and save data flags, texts, ActorInfo, map units, shops, drop tables, quests and BCML's other tables; a .bnp's options can be chosen there too), and the resource size table is updated; saves are backed up when the set of mods changes. Not yet: shaders in a mod, mods packaged for UKMM; mods for the Switch version can't work.
  • Code mods: Cemu graphic packs' code patches (patch_*.asm with v208 groups, such as Day Time, Camera Sensitivity or Draw Distance) in the same Mods folder, as a folder. They are built into the game code (Settings > Mods rebuilds it when one is added or changed: a few minutes, 10-20 the first time unless the installer kept its build files), then each one switches on and off at once, and its presets apply as you choose them. Packs that change what the port changes itself (FPS++, the cheats) are listed with the reason they can't be used.

What you need

  • An Apple Silicon Mac with macOS 13 or newer and about 3 GB free.

  • Apple's Command Line Tools (xcode-select --install; the installer offers it).

  • Your dump of the USA or the European release, extracted (folders with code, content and meta), all three of one release:

    USAEurope
    base game00050000101C940000050000101C9500
    update v2080005000E101C94000005000E101C9500
    DLC (optional)0005000C101C94000005000C101C9500

    Both v208 updates have the same game code, U-King.rpx with SHA-256 ba58da5b95ce929e005d058ceb08b9b2788d1ab2bbc8a6c189bbadca0bb34d30 (the installer checks it); the game is told its region by your dump. The European release is not play-tested yet: it starts in English, and its other languages are in Settings (Cmd+,) > Language & About. Titles installed in Cemu (mlc01/usr/title/...) work as they are. The Japanese release is not supported.

Build it by hand (for development)

brew install cmake ninja
DUMP="$HOME/path/to/dump/The Legend of Zelda Breath of the Wild"
python3 tools/probe_recomp.py "$DUMP [Update] [0005000e101c9400]/code/U-King.rpx" build/gen
cmake -S . -B build/rt -G Ninja -DCMAKE_BUILD_TYPE=Release -DWWHD_RENDERER=METAL
cmake --build build/rt --target wwhd
tools/run.sh                  # runs build/rt/wwhd on the dump (BOTW_DUMP= sets its folder)
tools/make_app.sh ~/Desktop   # bundles that build as Breath of the Wild.app

build/ is generated from your dump and git-ignored; never commit it. A release DMG comes from tools/release/botw_dmg.py VERSION.

How it works

  • tools/recomp/: the PowerPC → C translator of ZeldaWWHDRecomp, run unchanged on U-King.rpx (203,444 functions, about 1 GB of C), with upstream's code-quality passes (guest registers in C locals, condition-register liveness; WWHD_RECOMP_PLAIN=1 turns them off).
  • runtime/: the ZeldaWWHDRecomp runtime with this port's changes: Cafe OS (threads, scheduler, file system, saves, DLC), GX2 → Metal, audio (AX), input, H.264, the settings overlay.
  • tools/installer/: botw_setup.py (checks, translation, build, bundle) and the SwiftUI installer app in macos/.
  • PLAN.md: the bring-up notes, problems found and their fixes.

Credits

  • ZeldaWWHDRecomp: translator, runtime and approach this port is built on (MPL-2.0)
  • Cemu: Latte shader decompiler and GPU address library, vendored in runtime/third_party/cemu (MPL-2.0)
  • Dear ImGui (MIT), fmt (MIT), metal-cpp (Apache-2.0), stb (MIT / public domain), xxHash (BSD-2-Clause)

Licence: MPL-2.0 (see LICENSE); the third-party licences are next to their code in runtime/third_party/.