libretro / gambatte-libretro

Hard fork of Gambatte to the libretro API.
http://sourceforge.net/projects/gambatte/
GNU General Public License v2.0
105 stars 79 forks source link

Savestates nonfunctional on New 3ds #103

Closed bluesuitriot closed 2 years ago

bluesuitriot commented 6 years ago

Description When using Retroarch 1,7,3 and Gambatte 0.5.0 with GBC games on a Nintendo 3DS, loading state crashes the console.

Expected behavior The state would load.

Actual behavior It attempts to load the savestate but consistently fails at 96%. the 3ds version uses the bottom screen to display a log and the last items are:

[INFO] Loading State: "sdmc/retroarch/cores/savestates/.state [INFO] State size: 59446 bytes. [INFO] Saving state: "RAM" [INFO] State size: 59446 bytes.

I think this may be related to the saved state used to undo the loaded state.

Steps to reproduce the bug Load a Game Boy Color ROM Save state Load State

Bisect Results I went back 3 versions of retroarch and they all were affected by the issue.

Version/Commit Retroarch 1,7,3 and Gambatte 0.5.0 Build date May 4 2018 Compiler GCC (7.1.0)

RetroArch: [version/commit] Environment information OS: New 3ds XL 11.6 (Luma 3ds) Compiler: GCC (71.10)

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/58515946-savestates-nonfunctional-on-new-3ds?utm_campaign=plugin&utm_content=tracker%2F1258974&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1258974&utm_medium=issues&utm_source=github).
jdgleaver commented 5 years ago

This should be fixed by commit 256e0835a5777206927fe32a688d81b7debc73cf - please try the latest nightlies!

(Note that this update is incompatible with existing save states, so you'll need to start with fresh ones)