git.y1.nz

SameBoy

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

commit 9e808b255cbc07aea196067ab41c28f0d0854959
parent 1d34637bdaf7848aa5f99ea2c89087f45420973a
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sun, 27 Dec 2020 00:03:40 +0200

Escape now returns to the previous menu if used from a submenu in the SDL port

Diffstat:
MSDL/gui.c6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/SDL/gui.c b/SDL/gui.c @@ -1369,7 +1369,11 @@ void run_gui(bool is_running) } } else if (event.key.keysym.scancode == SDL_SCANCODE_ESCAPE) { - if (is_running) { + if (gui_state == SHOWING_MENU && current_menu != root_menu) { + return_to_root_menu(0); + should_render = true; + } + else if (is_running) { return; } else {

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