New Rust Project Targets Pokémon Gen V Static Recompilation
An early Rust foundation named gen5-recomp aims to bring Pokémon Generation V to PC via static recompilation, starting with Black 2 and White 2.
A new project brings static recompilation to the Nintendo DS era. Developer gen5-recomp has published an early Rust-based engine targeting Pokémon Generation V, starting with Pokémon Black 2 and White 2.
The project features a CLI ROM explorer that validates NDS headers, parses NitroFS tables, and caches game assets locally without emulation. It also extracts ARM9 and ARM7 binaries, decompresses overlays, and runs recursive function analysis.
Initial analysis decodes roughly 39,950 functions for Black 2 and White 2 with over 79% code coverage across overlays. Black and White hit roughly 34,680 functions with over 82% coverage.
How to try it
You need your own ROM dump.
- Clone the repository from GitHub.
- Run
cargo run -- inspectwith your ROM path to verify headers. - Use
cargo run -- importto extract assets and binaries into the local cache. - Run
cargo run --release -- analyzeto generate function maps.
It is an early foundation, and the game logic is not recompiled yet. The pipeline from raw ROM to decoded ARM code is working.