SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 21b0dd3d64b6e11897160d1bb353fa44025f0984 parent 208ba4afabffab9edde416f2dbb8ae459e34adb8 Author: Alex Morris <alexemorris@google.com> Date: Mon, 15 Jun 2026 19:13:48 +0000 Core: Fix object_low_line_address masking in sanitize_state Diffstat:
| M | Core/save_state.c | 2 | +- |
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.