diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-08-16 21:04:28 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-08-16 21:04:28 -0700 |
commit | 7bfeb5a00e8c6f081e0bd2e1acbe8fd3ffc35f47 (patch) | |
tree | 76dbc07121ffb471db5d139a9e64a0e7dd8901da /io.c | |
parent | 17ce89242c2efb3a525fca11b469eb0d32c97162 (diff) |
Using ui.exit to abort loading or saving a state via menu will no longer cause you to return to those sub-menus the next time the menu is loaded
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -22,6 +22,7 @@ #include "sms.h" #include "render.h" #include "util.h" +#include "menu.h" #define CYCLE_NEVER 0xFFFFFFFF #define MIN_POLL_INTERVAL 6840 @@ -528,6 +529,14 @@ void handle_binding_up(keybinding * binding) } case UI_EXIT: current_system->request_exit(current_system); + if (current_system->type == SYSTEM_GENESIS) { + genesis_context *gen = (genesis_context *)current_system; + if (gen->extra) { + //TODO: More robust mechanism for detecting menu + menu_context *menu = gen->extra; + menu->external_game_load = 1; + } + } break; } break; |