How kaezzey/gt4-staticrecomp works
GT4Recomp is a learning-first, GT4-specific static reconstruction and inspection project, not an executable game port: the README explicitly says guest execution is not implemented. Its main native workflows verify the pinned CORE, reconstruct an executable image, then either export an analysis ELF or disassemble a selected text range. A separate Python workflow verifies a selected disc against pinned metadata. The graph also preserves reference inspection and native-image verification utilities. Evidence is limited to the README, SOURCE INDEX references, and sampled source; uncertain internal connections are omitted.
Main entry points: gt4core/main.cpp CORE analysis CLI · gt4disasm/main.cpp Disassembly CLI · disassemble.cpp Region disassembler · verified_core.cpp Verified CORE reader
Components 16
Input verification
- Disc verifier
scripts/gt4disc.py - Pinned disc manifest
docs/inputs/usa-v2.00.json - Verified CORE reader
tools/common/verified_core.cpp
Image reconstruction
- CORE analysis CLI
tools/gt4core/main.cpp - CORE image parser
src/executable/core_image.cpp - Analysis ELF exporter
src/executable/analysis_elf.cpp
Instruction inspection
- Disassembly CLI
tools/gt4disasm/main.cpp - R5900 decoder
src/ee/decode.cpp - Region disassembler
src/ee/disassemble.cpp
Reference analysis
- Reference inspector
scripts/inspect_reference.py - Native image verifier
scripts/verify_native_image.py - Project identity stub
tools/gt4recomp/main.cpp
Other components
- Engineer
- CORE input
- Analysis ELF
- Instruction listing
Connections 16
- Engineer → Disc verifier: runs verification
README.md - Disc verifier → Pinned disc manifest: checks against
README.md - Engineer → CORE analysis CLI: requests analysis
README.md - CORE analysis CLI → Verified CORE reader: verifies input
tools/gt4core/main.cpp - CORE analysis CLI → CORE image parser: reconstructs image
tools/gt4core/main.cpp - CORE analysis CLI → Analysis ELF exporter: creates analysis ELF
tools/gt4core/main.cpp - CORE input → Verified CORE reader: supplies bytes
tools/common/verified_core.cpp - Analysis ELF exporter → Analysis ELF: writes output
README.md - Engineer → Disassembly CLI: selects text range
README.md - Disassembly CLI → Verified CORE reader: verifies input
tools/gt4disasm/main.cpp - Disassembly CLI → CORE image parser: reconstructs image
tools/gt4disasm/main.cpp - Disassembly CLI → Region disassembler: disassembles range
tools/gt4disasm/main.cpp - Region disassembler → R5900 decoder: decodes words
src/ee/disassemble.cpp - Region disassembler → Instruction listing: writes listing
README.md - Native image verifier → Reference inspector: imports helper
scripts/verify_native_image.py - Engineer → Reference inspector: inspects reference