SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 47ebc317331037fcf9b98ee10d66fa17cb953e66 parent 3dbd2eac91daed6a89f9a9b54c023c161eb594eb Author: Lior Halphon <LIJI32@gmail.com> Date: Sat, 26 Dec 2020 23:52:41 +0200 Fixed a bug where the SDL and libretro frontend would not update the border when loading a new ROM Diffstat:
| M | Core/gb.c | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/Core/gb.c b/Core/gb.c @@ -305,6 +305,7 @@ int GB_load_rom(GB_gameboy_t *gb, const char *path) fread(gb->rom, 1, gb->rom_size, f); fclose(f); GB_configure_cart(gb); + gb->tried_loading_sgb_border = false; return 0; } @@ -537,6 +538,7 @@ error: gb->rom_size = old_size; } fclose(f); + gb->tried_loading_sgb_border = false; return -1; } @@ -557,6 +559,7 @@ void GB_load_rom_from_buffer(GB_gameboy_t *gb, const uint8_t *buffer, size_t siz memset(gb->rom, 0xff, gb->rom_size); memcpy(gb->rom, buffer, size); GB_configure_cart(gb); + gb->tried_loading_sgb_border = false; } typedef struct {
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.