git.y1.nz

SameBoy

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

commit b27bd4eed7e569d0f534ddb3a6f4cf689a0593a9
parent e5454a39b78eaf44c5a7c853a353040314fad0c1
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat,  4 Sep 2021 18:15:22 +0300

Remove redundant condition

Diffstat:
MCore/apu.c3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Core/apu.c b/Core/apu.c @@ -1175,8 +1175,7 @@ void GB_apu_write(GB_gameboy_t *gb, uint8_t reg, uint8_t value) reads from it. */ if (!GB_is_cgb(gb) && gb->apu.is_active[GB_WAVE] && - gb->apu.wave_channel.sample_countdown == 0 && - gb->apu.wave_channel.enable) { + gb->apu.wave_channel.sample_countdown == 0) { unsigned offset = ((gb->apu.wave_channel.current_sample_index + 1) >> 1) & 0xF; /* This glitch varies between models and even specific instances:

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