fgsfdsfgs / sm64-port

PS2, PS3, OG Xbox and DOS ports of sm64-port.
https://discord.gg/7bcNTPK
242 stars 38 forks source link

Fix saves on PS2 #93

Closed santiagocezar closed 4 months ago

santiagocezar commented 4 months ago

The memory card driver was being initialized twice on init_drivers https://github.com/fgsfdsfgs/sm64-port/blob/822a74046d8a59edff1e30fb1ce622ad55f4a921/src/pc/pc_main.c#L156-L159

It gets called first in: https://github.com/fjtrujy/ps2_drivers/blob/1079e3a041c312287ab2d584ddd64d799f2dc9c0/src/ps2_filesystem_driver.c#L103 (i can't make this quote work for some strange reason)

And the second time here: https://github.com/fgsfdsfgs/sm64-port/blob/822a74046d8a59edff1e30fb1ce622ad55f4a921/src/pc/ps2_memcard.c#L160

Would likely fix #80, tested with success on my SCPH-90001 (NTSC)