git.y1.nz

SameBoy

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

commit f1b8164613954acf0cb448a500a205b040f48fab
parent 40fc477b56e2c423f766184326127bc5c98460ed
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sun, 17 Oct 2021 02:06:13 +0300

Force the user selected model on reset (which can change by a save state)

Diffstat:
MCocoa/Document.m7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/Cocoa/Document.m b/Cocoa/Document.m @@ -593,12 +593,7 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency) current_model = (enum model)[sender tag]; } - if (!modelsChanging && [sender tag] == MODEL_NONE) { - GB_reset(&gb); - } - else { - GB_switch_model_and_reset(&gb, [self internalModel]); - } + GB_switch_model_and_reset(&gb, [self internalModel]); if (old_width != GB_get_screen_width(&gb)) { [self.view screenSizeChanged];

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