SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit be21741db3a2e30afe7cce18bfe99e07a5ea83e7 parent dadbcf1ea318d36395987545c4b7dc9009f2c1ff Author: Lior Halphon <LIJI32@gmail.com> Date: Wed, 24 Sep 2025 18:17:36 +0300 Avoid overflow and assertion Diffstat:
| M | Core/save_state.c | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/Core/save_state.c b/Core/save_state.c @@ -1281,6 +1281,7 @@ done: GB_palette_changed(gb, false, i * 2); GB_palette_changed(gb, true, i * 2); } + gb->apu_output.sample_fraction = 0; return 0; parse_error: errno = -1; @@ -1366,6 +1367,7 @@ static int load_state_internal(GB_gameboy_t *gb, virtual_file_t *file) sanitize_state(gb); GB_rewind_invalidate_for_backstepping(gb); + gb->apu_output.sample_fraction = 0; return 0; }
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.