libretro / snes9x2005

Snes9x 2005. Port of SNES9x 1.43 for libretro (was previously called CAT SFC).
Other
15 stars 32 forks source link

Snes9x2005 (Non-Plus): Fix save state audio #78

Closed jdgleaver closed 3 years ago

jdgleaver commented 3 years ago

When using the non-plus version of the core, loading a save state completely breaks audio playback. This happens because the entire SoundData struct is currently omitted from the save state data buffer (!). This PR fixes the issue. (Note that the plus version is unaffected - this always worked correctly)

The PR also removes a spurious call of S9xSA1UnpackStatus() when loading a save state (its placement here is wrong - the function is called indirectly elsewhere).