Chocobo's Dungeon - native PC port
Chocobo's Dungeon - native PC port is a static recompilation of Final Fantasy Fables: Chocobo's Dungeon for Windows.
- Type: PC port
- Game: Chocobo's Dungeon
- Runs on Windows
- By darkuni
- Latest release v1.1, 2026-10-31
- Source: https://github.com/darkuni/chocobo-dungeon-recomp
README
Chocobo's Dungeon - native PC port (static recompilation)
Status: complete (1.0). Plays through the opening, tutorial, town and dungeons on Windows 10/11. See CHANGELOG.md for the history.
A native Windows/Linux port of Final Fantasy Fables: Chocobo's Dungeon (Wii, R7FEGD) built by statically recompiling the game's PowerPC code to C++ and replacing the Wii hardware and OS with a host runtime.
No game data is in this repository or its releases: the game reads its assets from your own disc.
gen/ (the C++ generated from the disc's main.dol) and the release exe contain code machine-translated from
the game's executable.
Download
Get the latest ChocoboDungeon-<version>-win64.zip from Releases,
unzip it, put your own disc image (.iso or .ciso, NTSC-U) in the same folder and run chocobo.exe: the first start
extracts it into the extracted folder. Nothing else to install. See the zip's README.txt for settings and controls.
How it works
recomp.py- readsmain.dol+symbols.txtand writes one C++ function per guest function (~26,000) intogen/. Handles jump tables, CodeWarrior_savegpr/_restgpr, paired singles, interrupt checks on backward branches, and HLE replacement of SDK functions listed inhle.txt.ppcdec.py,ppcdis.py,dol.py,xref.py- decoder, disassembler, DOL loader, xref helper.runtime/- the replacement console:runtime.cpp,ppc.h- guest memory (4 GiB reservation at a fixed host address), MMIO, SPRs, dispatchhle_thread.cpp- guest OS threads on host threads, interrupts, idle waithle_ios.cpp,hle_dvd.cpp,hle_fs.cpp- IOS: disc reads from the extracted files, NAND saves to a folderhle_audio.cpp,ax_dsp.cpp- AI DMA timing and the AX DSP mixer on the hosthle_input.cpp- Wii Remote (sideways / Nunchuk) and Classic Controller from keyboard/gamepadgx_fifo.cpp,gx_render.cpp,gx_shader.cpp,gx_tex.cpp- GX command processor -> OpenGL 3.3 (CPU vertex transform/lighting, TEV -> GLSL, texture decoders, EFB copies, draw batching, MSAA, mipmaps/anisotropic filtering, internal resolution scaling)gl_platform_sdl.cpp- window, presentation thread, input, audio (Windows /USE_SDL)gl_platform_egl.cpp- headless EGL for automated Linux runs (screenshots viaSHOT_EVERY)overlay.cpp,config.cpp- in-game settings menu (F1) andchocobo.ini
Building
-
Get
main.dolfrom your disc (sys/main.dolof an extracted image, e.g.wit extract). -
Generate the C++ (already committed in
gen/; only needed to regenerate it):python3 recomp.py main.dol symbols.txt gen 300 -
Windows build (cross-compiled from Linux with mingw-w64, POSIX threads):
cmake -B build-win -G Ninja -DCMAKE_TOOLCHAIN_FILE=mingw.cmake \ -DSDL2_DIR=/path/to/SDL2-2.30.x/x86_64-w64-mingw32 ninja -C build-winShip
chocobo.exewithSDL2.dll(libwinpthreadis linked statically).Linux headless (EGL) build:
cmake -B build -G Ninja && ninja -C build(add-DUSE_SDL=ONfor a windowed SDL build).
Compiling gen/ takes a while (about 90 large files). GitHub Actions builds every push; publishing a release attaches the zip.
Running
Put your disc image (.iso / .ciso) next to the executable and run it: the first start extracts it into
extracted/ (built in: runtime/game_setup.cpp). An already extracted disc (sys/, files/) in an extracted
folder works too.
Saves go to nand/ and settings to chocobo.ini next to the executable. See dist/README.txt
for settings and controls.