git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 8a0ff891bd50110d579f7bf057efa4d5421f1d6b
parent 9359f7a2d9f9068ba1b52635601c85df002cb667
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 29 Mar 2025 23:04:44 +0300

Fix build on Clang 20

Diffstat:
MCocoa/GBView.m6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Cocoa/GBView.m b/Cocoa/GBView.m @@ -431,20 +431,20 @@ static const uint8_t workboy_vk_to_key[] = { if (self.document.partner) { if (player == 0) { GB_set_key_state_for_player(_gb, (GB_key_t)button, 0, true); - if (button <= GB_KEY_DOWN) { + if ((GB_key_t)button <= GB_KEY_DOWN) { GB_set_use_faux_analog_inputs(_gb, 0, false); } } else { GB_set_key_state_for_player(self.document.partner.gb, (GB_key_t)button, 0, true); - if (button <= GB_KEY_DOWN) { + if ((GB_key_t)button <= GB_KEY_DOWN) { GB_set_use_faux_analog_inputs(self.document.partner.gb, 0, false); } } } else { GB_set_key_state_for_player(_gb, (GB_key_t)button, player, true); - if (button <= GB_KEY_DOWN) { + if ((GB_key_t)button <= GB_KEY_DOWN) { GB_set_use_faux_analog_inputs(_gb, player, false); } }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.