PrimeDecomp's Metroid Prime decompilation is on GitHub, and you still need your own disc
PrimeDecomp's work-in-progress matching decompilation of Metroid Prime is public. Here is what it supports and how to build it.
PrimeDecomp has put up a work-in-progress decompilation of Metroid Prime, the GameCube Metroid game, on GitHub. The goal is a matching decompilation: the rebuilt C++ code compiles back to the same bytes as the original disc. The repo has 357 stars and 2,577 commits on its page.
The repo contains no game assets and no original assembly. You need your own copy of the game. The README lists six supported versions: GM8E01_00 (USA v1.088), GM8E01_01 (USA v1.093), GM8E01_48 (KOR v1.097), GM8P01_00 (PAL v1.110), GM8J01_00 (JPN v1.111) and GM8E01_02 (USA v1.111). The version table has separate Code and Data columns, but the page text doesn’t explain how they differ.
How to build it:
- Clone the repo with
git clone https://github.com/PrimeDecomp/prime.git. - Initialize the submodules with
git submodule update --init --recursive. - Copy your disc image to
orig/GM8E01_00, or the file name for your version. ISO, RVZ, WIA, WBFS, CISO, NFS, GCZ and TGC are all accepted. You can delete the image after the first build. - Run
python configure.py. For another version, add--version GM8E01_01or similar. - Run
ninja.
For diffing, download objdiff from encounter/objdiff, set the Project directory, and pick an object from the left sidebar. Changes to source files, headers, configure.py, splits.txt or symbols.txt rebuild on their own.
Platform notes: on Windows the README recommends native tooling, and WSL and msys2 aren’t required. On macOS you install ninja and wine-crossover through Homebrew. On Linux x86 the build downloads wibo automatically. On other platforms you install wine from your package manager. Under WSL, objdiff can’t see filesystem changes, so automatic rebuilds don’t fire.
The repo is CC0-1.0 licensed. The page doesn’t say how much of the game is matched so far, so check the commit history before you plan a long session.

