Mercurial > repos > blastem
diff bindings.c @ 2306:62f316b76e9a
Migrate ui.exit to ui.menu and create a new ui.exit for quitting
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 23 Mar 2023 22:37:08 -0700 |
parents | b3832f73444f |
children | 59fd8aa352e2 |
line wrap: on
line diff
--- a/bindings.c Wed Mar 15 19:28:11 2023 -0700 +++ b/bindings.c Thu Mar 23 22:37:08 2023 -0700 @@ -39,6 +39,7 @@ UI_SCREENSHOT, UI_RECORD_VIDEO, UI_VGM_LOG, + UI_MENU, UI_EXIT, UI_PLANE_DEBUG, UI_VRAM_DEBUG, @@ -438,7 +439,7 @@ } } break; - case UI_EXIT: + case UI_MENU: #ifndef DISABLE_NUKLEAR if (is_nuklear_active()) { show_pause_menu(); @@ -457,6 +458,8 @@ } #endif break; + case UI_EXIT: + exit(0); case UI_PLANE_DEBUG: case UI_VRAM_DEBUG: case UI_CRAM_DEBUG: @@ -696,6 +699,8 @@ *subtype_a = UI_RECORD_VIDEO; } else if (!strcmp(target + 3, "vgm_log")) { *subtype_a = UI_VGM_LOG; + } else if(!strcmp(target + 3, "menu")) { + *subtype_a = UI_MENU; } else if(!strcmp(target + 3, "exit")) { *subtype_a = UI_EXIT; } else if (!strcmp(target + 3, "plane_debug")) {