git.y1.nz

SameBoy

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

commit ad05eb6d0a02a8fac351eb75bd94c5675a9b305f
parent 955ef591406a4f35c34970fd3e9284430216b7ef
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 10 Apr 2021 16:15:40 +0300

GCC build fix

Diffstat:
MCore/gb.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Core/gb.c b/Core/gb.c @@ -347,7 +347,7 @@ int GB_load_gbs(GB_gameboy_t *gb, const char *path, GB_gbs_info_t *info) return errno; } fread(&gb->gbs_header, sizeof(gb->gbs_header), 1, f); - if (gb->gbs_header.magic != htonl('GBS\x01') || + if (gb->gbs_header.magic != BE32('GBS\x01') || LE16(gb->gbs_header.load_address) < 0x400 || LE16(gb->gbs_header.load_address) >= 0x8000) { GB_log(gb, "Not a valid GBS file: %s.\n", strerror(errno));

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