mirror of
https://github.com/jkdansereau/goldeneye-pc-port.git
synced 2026-10-23 15:52:42 +02:00
D59/D64: the 'external GL DLL' crash was an unbounded blood-RLE write (sentinel die_blood_image_end lost its N64 section adjacency on PC) clobbering the gun-barrel sub-DL at ptr_logo_and_walletbond_DL+0x200. D60: osPiStartDma DMA-target validation (VirtualQuery-based) in libultra.c. D61/D63: TEMP env-gated ROM-read / VTX-pool / menu probes (strip list in HANDOFF Task 3). D62: OSMesgQueue/OSScMsg PC layout verification. D65/D65b: enum HEADS/BODIES signed sentinels under PORT (PC GCC picks unsigned underlying types; N64 semantics were signed). D66: romCopyAligned + ramrom replay 64-bit pointer width (s32 truncation of .bss targets > 4 GiB). D67: struct image_entry N64 layout reconstruction (dataoffset:24 first, all-u32 bitfields, sizeof==8). D68: Globalimagetable BE->LE fixup (port/src/gimgfixup.c): bswap the IMAGESEG-marked Gfx w1 words in the 17 ROM-copied DLs + sImageTableEntry. index in the 32 tables after texReset's romCopy; marker scan moved to bytes 6..7 under PORT; compiled globalDL shadows synced post-texLoad for explosion.c's g_ExplosionDisplayLists. Result: game boots, plays intro music, and renders the entire ~3.5-minute intro (logo -> gun barrel with Brosnan -> cast screen) at ~59 fps. New blocker D69: load_bg_file faults on first stage load - BG-file headers are N64 big-endian segment-0x0F offsets read LE on PC. Full analysis + strategy in PCPortResearch.md §F/D69; HANDOFF rewritten for the D69 session.
21 lines
570 B
C
21 lines
570 B
C
/*
|
|
* PC port shim for bare <R4300.h> includes (some game files include it
|
|
* without the PR/ prefix, which resolves to include/PR/R4300.h and would
|
|
* bypass the PHYS_TO_K0 redefinition in port/shim/PR/R4300.h). Same content
|
|
* as that shim; keep the two in sync.
|
|
*/
|
|
#ifndef _PORT_SHIM_R4300_BARE_H_
|
|
#define _PORT_SHIM_R4300_BARE_H_
|
|
|
|
#if defined(PORT)
|
|
# include "include/PR/R4300.h"
|
|
|
|
# undef PHYS_TO_K0
|
|
# define PHYS_TO_K0(x) ((u32)(x)) /* identity: V1 view is already virtual */
|
|
|
|
#else
|
|
# include <PR/R4300.h>
|
|
#endif
|
|
|
|
#endif /* _PORT_SHIM_R4300_BARE_H_ */
|