From GitHub · · 1m
GitHub decompiles Resident Evil 4
GitHub reveals complete byte-identical C/C++ source for GameCube Resident Evil 4 debug build.
In brief
GitHub reveals complete byte-identical C/C++ source for GameCube Resident Evil 4 debug build. Adonis Singh decompiled Resident Evil 4's G4BE08 debug build into 570,000 lines of C/C++ code matching original bytes. Originally reported by GitHub.
Resident Evil 4 decompilation
This is a complete byte-identical decompilation of Resident Evil 4's GameCube debug build G4BE08.
Debug build details
G4BE08 shipped with Bio4.sym symbol files naming every function.
Source structure
570,000 lines of C/C++ in src/ and 44,000 headers in include/.
Build tools
Requires Linux, Python 3 and ninja to compile the debug build.
Code origins
Built with SN Systems ProDG 3.9.3, GCC 2.95.3 and Metrowerks CodeWarrior 2.4.7.
Source organization
src/game/ contains game code, src/em* enemies, src/wep* weapons and src/pl* player characters.
Compiler differences
526 compiler differences marked with // COMPILER-DIFF comments.
What's next
Project aims to reduce compiler differences while preserving exact byte output.
The big picture
Adonis Singh decompiled Resident Evil 4's G4BE08 debug build into 570,000 lines of C/C++ code matching original bytes.

