git.y1.nz

SameBoy

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

commit 03f4f03661d10a366c2302a4299362878d1aea91
parent 5cd65f845de7115ae520b21b2623abc8f69056ec
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sun, 24 Jul 2022 13:56:33 +0300

Rename function

Diffstat:
MCore/joypad.c2+-
MCore/joypad.h2+-
MTester/main.c2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Core/joypad.c b/Core/joypad.c @@ -217,7 +217,7 @@ void GB_set_allow_illegal_inputs(GB_gameboy_t *gb, bool allow) gb->illegal_inputs_allowed = allow; } -void GB_emulate_joypad_bouncing(GB_gameboy_t *gb, bool emulate) +void GB_set_emulate_joypad_bouncing(GB_gameboy_t *gb, bool emulate) { gb->no_bouncing_emulation = !emulate; } diff --git a/Core/joypad.h b/Core/joypad.h @@ -37,7 +37,7 @@ void GB_icd_set_joyp(GB_gameboy_t *gb, uint8_t value); bool GB_get_joyp_accessed(GB_gameboy_t *gb); void GB_clear_joyp_accessed(GB_gameboy_t *gb); void GB_set_allow_illegal_inputs(GB_gameboy_t *gb, bool allow); -void GB_emulate_joypad_bouncing(GB_gameboy_t *gb, bool emulate); +void GB_set_emulate_joypad_bouncing(GB_gameboy_t *gb, bool emulate); #ifdef GB_INTERNAL internal void GB_update_joyp(GB_gameboy_t *gb); diff --git a/Tester/main.c b/Tester/main.c @@ -432,7 +432,7 @@ int main(int argc, char **argv) GB_set_async_input_callback(&gb, async_input_callback); GB_set_color_correction_mode(&gb, GB_COLOR_CORRECTION_EMULATE_HARDWARE); GB_set_rtc_mode(&gb, GB_RTC_MODE_ACCURATE); - GB_emulate_joypad_bouncing(&gb, false); // Adds too much noise + GB_set_emulate_joypad_bouncing(&gb, false); // Adds too much noise if (GB_load_rom(&gb, filename)) { perror("Failed to load ROM");

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