GitHub decompiles Resident Evil 4

GitHub reveals complete byte-identical C/C++ source for GameCube Resident Evil 4 debug build.

8 cards · 1m · tap to begin

From · · 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

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.

Read the original on GitHub

React

Sign in to react and comment.

Comments (0)

Life is short. Keep it sweet. Respect others' opinions and be kind!

    Recommended next

    More decks on resident evil 4 and related topics.