Mercurial > repos > blastem
diff bindings.c @ 2707:a64c0e1ed6ac
Implement speed control and reset for media player. Fix other bindings that could cause it to crash
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 06 Jul 2025 20:43:37 -0700 |
parents | 99297d5f4c5d |
children |
line wrap: on
line diff
--- a/bindings.c Sun Jul 06 20:09:32 2025 -0700 +++ b/bindings.c Sun Jul 06 20:43:37 2025 -0700 @@ -354,7 +354,7 @@ } break; case UI_LOAD_STATE: - if (allow_content_binds) { + if (allow_content_binds && current_system->load_state) { current_system->load_state(current_system, QUICK_SAVE_SLOT); } break; @@ -478,27 +478,6 @@ case UI_CD_GRAPHICS_DEBUG: if (allow_content_binds && current_system->toggle_debug_view) { current_system->toggle_debug_view(current_system, binding->subtype_a - UI_PLANE_DEBUG + DEBUG_PLANE); - /* - vdp_context *vdp = NULL; - if (current_system->type == SYSTEM_GENESIS || current_system->type == SYSTEM_SEGACD) { - genesis_context *gen = (genesis_context *)current_system; - vdp = gen->vdp; - } else if (current_system->type == SYSTEM_SMS) { - sms_context *sms = (sms_context *)current_system; - vdp = sms->vdp; - } - if (vdp) { - uint8_t debug_type; - switch(binding->subtype_a) - { - case UI_PLANE_DEBUG: debug_type = VDP_DEBUG_PLANE; break; - case UI_VRAM_DEBUG: debug_type = VDP_DEBUG_VRAM; break; - case UI_CRAM_DEBUG: debug_type = VDP_DEBUG_CRAM; break; - case UI_COMPOSITE_DEBUG: debug_type = VDP_DEBUG_COMPOSITE; break; - default: return; - } - vdp_toggle_debug_view(vdp, debug_type); - }*/ break; } case UI_PASTE: