git.y1.nz

SameBoy

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

commit 8c30a7c90c666c79e42704d606041addb62d5a3b
parent 2b89923a6fa661f7b9f9243c431003bd6e90dceb
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sun, 30 Mar 2025 19:34:24 +0300

Fixed a bug where changing a model does not immediately restart upon exiting the emulation menu

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

diff --git a/SDL/gui.c b/SDL/gui.c @@ -2677,6 +2677,7 @@ void run_gui(bool is_running) for (const struct menu_item *item = current_menu; item->string; item++) { if (strcmp(item->string, "Back") == 0) { item->handler(0); + goto handle_pending; break; } } @@ -2715,6 +2716,7 @@ void run_gui(bool is_running) else if (event.key.keysym.scancode == SDL_SCANCODE_RETURN && !current_menu[current_selection].backwards_handler) { if (current_menu[current_selection].handler) { current_menu[current_selection].handler(current_selection); + handle_pending: if (pending_command == GB_SDL_RESET_COMMAND && !is_running) { pending_command = GB_SDL_NO_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.