comparison 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
comparison
equal deleted inserted replaced
2305:6aca1734d573 2306:62f316b76e9a
37 UI_RELOAD, 37 UI_RELOAD,
38 UI_SMS_PAUSE, 38 UI_SMS_PAUSE,
39 UI_SCREENSHOT, 39 UI_SCREENSHOT,
40 UI_RECORD_VIDEO, 40 UI_RECORD_VIDEO,
41 UI_VGM_LOG, 41 UI_VGM_LOG,
42 UI_MENU,
42 UI_EXIT, 43 UI_EXIT,
43 UI_PLANE_DEBUG, 44 UI_PLANE_DEBUG,
44 UI_VRAM_DEBUG, 45 UI_VRAM_DEBUG,
45 UI_CRAM_DEBUG, 46 UI_CRAM_DEBUG,
46 UI_COMPOSITE_DEBUG, 47 UI_COMPOSITE_DEBUG,
436 current_system->start_vgm_log(current_system, path); 437 current_system->start_vgm_log(current_system, path);
437 free(path); 438 free(path);
438 } 439 }
439 } 440 }
440 break; 441 break;
441 case UI_EXIT: 442 case UI_MENU:
442 #ifndef DISABLE_NUKLEAR 443 #ifndef DISABLE_NUKLEAR
443 if (is_nuklear_active()) { 444 if (is_nuklear_active()) {
444 show_pause_menu(); 445 show_pause_menu();
445 } else { 446 } else {
446 #endif 447 #endif
455 } 456 }
456 #ifndef DISABLE_NUKLEAR 457 #ifndef DISABLE_NUKLEAR
457 } 458 }
458 #endif 459 #endif
459 break; 460 break;
461 case UI_EXIT:
462 exit(0);
460 case UI_PLANE_DEBUG: 463 case UI_PLANE_DEBUG:
461 case UI_VRAM_DEBUG: 464 case UI_VRAM_DEBUG:
462 case UI_CRAM_DEBUG: 465 case UI_CRAM_DEBUG:
463 case UI_COMPOSITE_DEBUG: 466 case UI_COMPOSITE_DEBUG:
464 case UI_OSCILLOSCOPE_DEBUG: 467 case UI_OSCILLOSCOPE_DEBUG:
694 *subtype_a = UI_SCREENSHOT; 697 *subtype_a = UI_SCREENSHOT;
695 } else if (!strcmp(target + 3, "record_video")) { 698 } else if (!strcmp(target + 3, "record_video")) {
696 *subtype_a = UI_RECORD_VIDEO; 699 *subtype_a = UI_RECORD_VIDEO;
697 } else if (!strcmp(target + 3, "vgm_log")) { 700 } else if (!strcmp(target + 3, "vgm_log")) {
698 *subtype_a = UI_VGM_LOG; 701 *subtype_a = UI_VGM_LOG;
702 } else if(!strcmp(target + 3, "menu")) {
703 *subtype_a = UI_MENU;
699 } else if(!strcmp(target + 3, "exit")) { 704 } else if(!strcmp(target + 3, "exit")) {
700 *subtype_a = UI_EXIT; 705 *subtype_a = UI_EXIT;
701 } else if (!strcmp(target + 3, "plane_debug")) { 706 } else if (!strcmp(target + 3, "plane_debug")) {
702 *subtype_a = UI_PLANE_DEBUG; 707 *subtype_a = UI_PLANE_DEBUG;
703 } else if (!strcmp(target + 3, "vram_debug")) { 708 } else if (!strcmp(target + 3, "vram_debug")) {