mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 02:11:36 -04:00
709e04d228
The emitter writes both helpers at a listed bgez_sites or clip_edge_x_load_sites address whose instruction matches in overlay code too, but overlay_dispatch_preamble.c.inc did not define them, so such a shard failed to link (macOS, Windows) or to load (Linux dlopen RTLD_NOW) and its overlay stayed interpreted. The preamble now defines both over psx_ws_x_margin(), with the same pure math gpu.c uses (ws_cull_edge.h, stdint-only, staged with the other runtime headers). ws_cull_edge.h joins the shard compile surface in codegen_hash_sources.cmake. overlay_shim_compile_contract links a shim that calls both with the emitter's extern declarations, and overlay_widescreen_callbacks runs them in an executable: identity with no margin callback, widened at margin 120, interior clip edges unchanged. Both fail without the definitions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>