mirror of
https://github.com/Druthulu/BFM-decomp
synced 2026-09-26 13:33:34 -04:00
9062f0fcc0
- docs/struct-core-pivot.md: findings + decision + new research directions. Root cause = the original engine is LOOSELY TYPED (K&R; same fn called with int/ptr, arg/no-arg across sites), so no single canonical signature exists -> m2c guesses inconsistently, permuter can't fix semantics, byte-gate (correctly) rejects. Yields ~3%, not the crack. New plan: emulator-recover the actor struct/types -> Ghidra global type propagation -> Ghidra-C -> permuter+gate. - harness bug-fixes (REAL, kept): p16_permute output-0-only match (killed the false '42%'), base.c keeps callee externs, winner_to_draft line-strip; sig_unify canonicalizes m2c's no-extern prototypes; gen_engine_decls.py (documents why a global canonical header breaks loose-typed matches). - a few byte-gated leaf matches banked in ov_SC01_077.c.