Skip to content

Releases

v1.0.0: Full decompilation and native PC port

Choose a tag to compare

@an1n-dya an1n-dya released this 30 Oct 06:44
27fde1d

The first public release: Kuru Kuru Kururin (GBA, Europe) decompiled to C, and the game built from that code as a native PC program for Windows and Linux.

No game data is included. You need your own dump of the cartridge: Kuru Kuru Kururin (Europe, AKRP), 4 194 304 bytes, SHA-1 6025ef597db2684ae064ffe22b4fd1d37941f887. Not affiliated with or endorsed by Nintendo.

The decompilation

  • All 356 functions are C: 285 game and 71 library.
  • The rebuilt ROM plays identically to the original. A side-by-side test in mGBA compares RAM, save data and sound writes on every frame, and the screen on every fourth, over 14 inputs (two TASVideos movies and twelve scripted runs, ~167 000 frames). The test also passes with every function and all data moved.
  • Rebuilt ROM SHA-1: d1fbc47f3801b2a4a701e083fcd89b89a40c0c9f. It's a functional decomp, so not byte-identical; 191 functions still match byte for byte.
  • Readable code: 34 modules, descriptive names with the evidence for each, and docs on the save format, unused content and how it all works.

The PC port

Each package contains the game's own decompiled code and a small layer standing in for the GBA hardware. It reads all graphics, music and levels from your ROM at start-up.

  • Same RAM and sound as the original on all 14 inputs; 165 848 of 165 899 tested frames are pixel-identical (the rest are expected mid-frame effects).
  • Window scaling, fullscreen (F11), keyboard and gamepad controls you can change in kururin.ini, and saves to kururin.sav.

To play: put your ROM next to the program as baserom.gba and start it (kururin_pc.exe on Windows, kururin.sh on Linux). Each package's README.txt has the controls and settings.

Download For SHA-256
kururin_pc_win32.zip Windows 7 or later (32- and 64-bit) cf44bcaf02529877b9282e4579db46cb5d5dd4fbb144e3ed0eefc4256581597f
kururin_pc_linux_x86.tar.gz Linux with glibc 2.34+ (32-bit SDL2 needed; kururin.sh --check tells you what to install) a679577f48cb2be304be5847e6c2f0b74a1eeb8eb140619a67a296bb9b95bd80

Licence

Tools, tests and the port are GPL-3.0. The game's decompiled C in src/ and include/ is CC0. Exceptions are listed in NOTICE.md: the pret-derived SDK files, port/src/video.c (MPL-2.0, from mGBA) and the TASVideos movies (CC BY 2.0).

Credits

KururinTAS and KuruTools (research and names), pret (agbcc and the SDK library sources), mGBA (the test harness and the renderer the port's is based on), TASVideos and the authors of movies #6116M (mohoc) and #3933M (mohoc, E-Sh4rk).