How seveerj/ghoulies_pc_recomp works
Ghoulies PC Recomp is a Windows port of Grabbed by the Ghoulies: a player supplies their own North American game files, which are translated and built into a native executable that runs against an Xbox compatibility runtime. The graph includes setup, the documented recompiler stages, game startup and settings, and the runtime’s kernel, graphics, audio, input, and video capabilities. The README and selected source excerpts support the broad workflow; most runtime implementation files were not sampled, so detailed internal dispatch links are omitted.
Main entry points: main.c Game executable · setup_main.py Setup orchestration · setup.c Setup program · engine.py Disassembly
Components 22
Setup and build
- Setup program
installer/setup.c - Setup orchestration
installer/setup_main.py - Disc parsing
xboxrecomp-main/tools/xiso/xdvdfs.py
Recompilation tools
- XBE parsing
xboxrecomp-main/tools/xbe_parser/xbe_parser.py - Disassembly
xboxrecomp-main/tools/disasm/engine.py - Recomp disassembly
xboxrecomp-main/tools/recomp/disasm.py - Code lifting
xboxrecomp-main/tools/recomp/lifter.py - Code translation
xboxrecomp-main/tools/recomp/translator.py
Game application
- Game executable
ghoulies/src/main.c - Launch settings
ghoulies/src/launcher.c - In-game menu
ghoulies/src/overlay.cpp - Manual replacements
ghoulies/src/recomp_manual.c
Xbox kernel runtime
- Guest memory
xboxrecomp-main/src/kernel/xbox_memory_layout.c - Kernel bridge
xboxrecomp-main/src/kernel/kernel_bridge.c - Kernel services
xboxrecomp-main/src/kernel/kernel_file.c
Console devices
- D3D graphics
xboxrecomp-main/src/d3d/d3d8_resources.c - NV2A GPU
xboxrecomp-main/src/nv2a/nv2a_pgraph_d3d11.c - Audio and APU
xboxrecomp-main/src/apu/apu_core.c - Gamepad input
xboxrecomp-main/src/input/xinput_device.c - Video playback
xboxrecomp-main/src/video/video_player.c
Other components
- Player
- Game files
Connections 24
- Player → Setup program: starts setup
- Player → Game files: provides copy
- Setup program → Disc parsing: validates disc
installer/setup.c - Setup program → Setup orchestration: launches build
installer/setup.c - Game files → Setup orchestration: supplies source
- Setup orchestration → XBE parsing: parses XBE
- Setup orchestration → Disassembly: disassembles
- Setup orchestration → Code translation: translates game
- Disassembly → Recomp disassembly: supports analysis
- Code lifting → Recomp disassembly: uses disassembly
xboxrecomp-main/tools/recomp/lifter.py - Setup orchestration → Game executable: builds executable
- Player → Launch settings: chooses settings
- Launch settings → Game executable: configures startup
- Player → In-game menu: opens menu
- In-game menu → Game executable: updates settings
ghoulies/src/overlay.cpp - Game executable → Guest memory: initializes guest space
- Game executable → Kernel bridge: initializes imports
- Kernel bridge → Kernel services: dispatches kernel calls
xboxrecomp-main/src/kernel/kernel_bridge.c - Game executable → Manual replacements: resolves replacements
- Game executable → D3D graphics: uses graphics
- D3D graphics → NV2A GPU: renders via GPU
- Game executable → Audio and APU: uses audio
- Game executable → Gamepad input: reads controller
- Game executable → Video playback: plays cutscenes