ps3dev / PSL1GHT

A lightweight PS3 SDK
www.psl1ght.com
MIT License
222 stars 62 forks source link

Outputted binaries don't work in RPCS3 #135

Closed ExoSkye closed 2 years ago

ExoSkye commented 2 years ago

Currently, for some reason, binaries generated by the default workflow used by psl1ght just segfault in RPCS3 when trying to call sysSpinlockInitialize Specifically it gives this error: F {PPU[0x1000000] Thread (main_thread) [0x7c0802a4]} VM: Access violation executing location 0x7c0802a4 (unmapped memory) This function is called in the sbrk_init function. Thanks to kd-11 on the RPCS3 discord server I've found this work around which currently works, however, I have a feeling that this may be caused by an issue in fself or make_self. The workaround is to use scetool to decrypt the fake self before encrypting it again using make_fself. Both these tools aren't in the psl1ght repository. This issue makes code far harder to debug since I can't find a way to use Kammy's ethdebug since that appears to rely on psl1ght v1. Currently I've been trying to create an onscreen logger, however it doesn't work, and I can't debug it with RPCS3 :/

Hopefully this information is useful!

ExoSkye commented 2 years ago

So it appears that the SELF outputted works, but the ELF doesn't I'mma close this since I feel dumb af now