Closed ser-pounce closed 2 years ago
My loader uses templates of code generated by the psyq compiler to get correct offsets. I'll check your game binary, thanks.
Thanks, let me know if you need any more info.
In such cases you will need to manually change segments sizes and flags.
I tried that but once a segment was made uninitialised during setup I was unable to set it back to initialise it from the file. The only option was to initialise the segment to a fixed byte value, but maybe I'm missing something.
Now I see the problem.
Fixed via b9ffc67612a04211bab40c4523daf18025f9e3b7. Wait for the next release.
Vagrant Story passes 0x800401ac to
InitHeap
, but makes no use of system memory management and has its own separate heap.Unfortunately 0x800401ac is right in the middle of the main exe, which occupies 0x80010000 - 0x80061fff, and due to the way psx_ldr sets up the segments the region from 0x800401a8 - 0x80061fff is configured as uninitialized when it actually contains code and data.