Cloned Games

Resident Evil 4 Decompilation

DecompilationActive

Source code reconstructed from the original game's compiled binary, so the game can be understood, rebuilt and ported.

Resident Evil 4 (original game, not this project)Original game image
Image of the original game, Resident Evil 4. This project has no screenshots of its own yet.
Links, repository & details

About

A complete decompilation of the GameCube debug build of Resident Evil 4 (G4BE08, the Nov 25 2004 prototype on two discs). The debug build shipped with Bio4.sym symbol files naming every function. Building the repository gives back the exact original main.dol and all 114 REL overlays, checked by hash on every build, from about 570,000 lines of C and C++ source.

Getting started

There are no game assets in the repository, so you need your own images of the debug discs. You need Linux, Python 3 and ninja: build the SN compiler once from SN's GPL source release, copy the disc images into the orig directory, then run configure.py and ninja. The build should end with a progress report of 100% matched and linked.

What you need to run it

Original game files required. The project ships code only; you provide your own copy of the game (GameCube version).

Licensing & legal

  • Build scripts, tools, configuration and documentation are released under CC0, while the reconstructed game and SDK source remains the property of Capcom, Nintendo and CRI Middleware and is published for research and preservation only.

Additional notes

Compiler diff
526 spots are marked COMPILER-DIFF, where the compiler only matches the original if the code is written in a particular way; none of them adds an instruction to the output.

FAQ

What is Resident Evil 4 Decompilation?
Resident Evil 4 Decompilation is an open-source decompilation of Resident Evil 4. Source code reconstructed from the original game's compiled binary, so the game can be understood, rebuilt and ported. The original game ran on GameCube.
Do I need the original game files to run Resident Evil 4 Decompilation?
Yes. The project does not include the original game's assets, so you need your own copy.
How is Resident Evil 4 Decompilation licensed?
Capcom, Nintendo and CRI Middleware: research and preservation only (reconstructed game and SDK source); project: CC0 (build scripts, tools, configuration and documentation). The repository itself is the authoritative source.
Share: