git.y1.nz

SameBoy

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

commit eb4c47ebf58cf93261620bfe138b650979f94049
parent 208ba4afabffab9edde416f2dbb8ae459e34adb8
Author: Lior Halphon <2345928+LIJI32@users.noreply.github.com>
Date:   Mon, 15 Jun 2026 22:18:24 +0300

Merge pull request #760 from alexemorris/fix-save-state-masking

Core: Fix object_low_line_address masking in sanitize_state
Diffstat:
MCore/save_state.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Core/save_state.c b/Core/save_state.c @@ -409,7 +409,7 @@ static void sanitize_state(GB_gameboy_t *gb) gb->current_tile_attributes = 0; } - gb->object_low_line_address &= gb->vram_size & ~1; + gb->object_low_line_address &= (gb->vram_size - 1) & ~1; if (gb->lcd_x > gb->position_in_line) { gb->lcd_x = gb->position_in_line; }

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