comparison bindings.c @ 2271:3ef80963c2a7

Fix stamp address mask and add WIP CD graphics debug view
author Michael Pavone <pavone@retrodev.com>
date Thu, 29 Dec 2022 15:47:19 -0800
parents 0d1d5dccdd28
children 5d3411f52d00
comparison
equal deleted inserted replaced
2270:827ab6dd534a 2271:3ef80963c2a7
42 UI_PLANE_DEBUG, 42 UI_PLANE_DEBUG,
43 UI_VRAM_DEBUG, 43 UI_VRAM_DEBUG,
44 UI_CRAM_DEBUG, 44 UI_CRAM_DEBUG,
45 UI_COMPOSITE_DEBUG, 45 UI_COMPOSITE_DEBUG,
46 UI_OSCILLOSCOPE_DEBUG, 46 UI_OSCILLOSCOPE_DEBUG,
47 UI_CD_GRAPHICS_DEBUG
47 } ui_action; 48 } ui_action;
48 49
49 typedef struct { 50 typedef struct {
50 uint8_t bind_type; 51 uint8_t bind_type;
51 uint8_t subtype_a; 52 uint8_t subtype_a;
432 case UI_PLANE_DEBUG: 433 case UI_PLANE_DEBUG:
433 case UI_VRAM_DEBUG: 434 case UI_VRAM_DEBUG:
434 case UI_CRAM_DEBUG: 435 case UI_CRAM_DEBUG:
435 case UI_COMPOSITE_DEBUG: 436 case UI_COMPOSITE_DEBUG:
436 case UI_OSCILLOSCOPE_DEBUG: 437 case UI_OSCILLOSCOPE_DEBUG:
438 case UI_CD_GRAPHICS_DEBUG:
437 if (allow_content_binds && current_system->toggle_debug_view) { 439 if (allow_content_binds && current_system->toggle_debug_view) {
438 current_system->toggle_debug_view(current_system, binding->subtype_a - UI_PLANE_DEBUG + DEBUG_PLANE); 440 current_system->toggle_debug_view(current_system, binding->subtype_a - UI_PLANE_DEBUG + DEBUG_PLANE);
439 /* 441 /*
440 vdp_context *vdp = NULL; 442 vdp_context *vdp = NULL;
441 if (current_system->type == SYSTEM_GENESIS || current_system->type == SYSTEM_SEGACD) { 443 if (current_system->type == SYSTEM_GENESIS || current_system->type == SYSTEM_SEGACD) {
675 *subtype_a = UI_CRAM_DEBUG; 677 *subtype_a = UI_CRAM_DEBUG;
676 } else if (!strcmp(target + 3, "compositing_debug")) { 678 } else if (!strcmp(target + 3, "compositing_debug")) {
677 *subtype_a = UI_COMPOSITE_DEBUG; 679 *subtype_a = UI_COMPOSITE_DEBUG;
678 } else if (!strcmp(target + 3, "oscilloscope")) { 680 } else if (!strcmp(target + 3, "oscilloscope")) {
679 *subtype_a = UI_OSCILLOSCOPE_DEBUG; 681 *subtype_a = UI_OSCILLOSCOPE_DEBUG;
682 } else if (!strcmp(target + 3, "cd_graphics_debug")) {
683 *subtype_a = UI_CD_GRAPHICS_DEBUG;
680 } else { 684 } else {
681 warning("Unreconized UI binding type %s\n", target); 685 warning("Unreconized UI binding type %s\n", target);
682 return 0; 686 return 0;
683 } 687 }
684 return BIND_UI; 688 return BIND_UI;