git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 1757e1b128e2ed64d509adcebf40dc3b69d8cfc4
parent d5ff93af3bcd3f1e0845d2ee5b7080307d1ebfe8
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Wed,  1 Feb 2023 21:59:26 +0200

Allow rewinding a state load on iOS

Diffstat:
MiOS/GBViewController.m4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/iOS/GBViewController.m b/iOS/GBViewController.m @@ -262,7 +262,9 @@ static void rumbleCallback(GB_gameboy_t *gb, double amp) { GB_model_t model; if (!GB_get_state_model(file.fileSystemRepresentation, &model)) { - GB_switch_model_and_reset(&_gb, model); + if (GB_get_model(&_gb) != model) { + GB_switch_model_and_reset(&_gb, model); + } GB_load_state(&_gb, file.fileSystemRepresentation); } }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.