git.y1.nz

SameBoy

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

commit e466c3c5b1a5676edd63a0205c83f52afce3669a
parent 707103228808e196e704013ed6ff85e4546bf103
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat,  2 Jul 2022 22:40:37 +0300

Ehh oops

Diffstat:
MSDL/gui.c8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/SDL/gui.c b/SDL/gui.c @@ -401,10 +401,12 @@ const char *current_model_string(unsigned index) static void cycle_cgb_revision(unsigned index) { - configuration.cgb_revision++; if (configuration.cgb_revision == GB_MODEL_CGB_E - GB_MODEL_CGB_0) { configuration.cgb_revision = 0; } + else { + configuration.cgb_revision++; + } pending_command = GB_SDL_RESET_COMMAND; } @@ -413,7 +415,9 @@ static void cycle_cgb_revision_backwards(unsigned index) if (configuration.cgb_revision == 0) { configuration.cgb_revision = GB_MODEL_CGB_E - GB_MODEL_CGB_0; } - configuration.cgb_revision--; + else { + configuration.cgb_revision--; + } pending_command = GB_SDL_RESET_COMMAND; }

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