libretro / desmume

DeSmuME is a Nintendo DS emulator
http://desmume.org
GNU General Public License v2.0
35 stars 33 forks source link

Metroid Pinball crash on state loading #104

Open Tatsuya79 opened 1 year ago

Tatsuya79 commented 1 year ago

Metroid Pinball crash on state loading

issue from forum: https://forums.libretro.com/t/savestate-fail-for-metroid-prime-pinball-in-desmume/23642

I can confirm it. I managed to make it load by removing the reset here: https://github.com/libretro/desmume/blob/master/desmume/src/saves.cpp#L1338 But that causes other games to sometimes crash on state loading, not a reliable way...

Tatsuya79 commented 1 year ago

What it is doing on reset: https://github.com/libretro/desmume/blob/master/desmume/src/NDSSystem.cpp#L2562