From a3a73602fc2396d7d19b459476af96659a7490f8 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Tue, 13 Apr 2021 01:09:29 +0300 Subject: [PATCH] ATF is only 0xFD2 bytes, not 0xFE0 --- Core/sgb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/sgb.h b/Core/sgb.h index 320fb6a..1e67835 100644 --- a/Core/sgb.h +++ b/Core/sgb.h @@ -51,7 +51,8 @@ struct GB_sgb_s { uint16_t effective_palettes[4 * 4]; uint16_t ram_palettes[4 * 512]; uint8_t attribute_map[20 * 18]; - uint8_t attribute_files[0xFE0]; + uint8_t attribute_files[0xFD2]; + uint8_t attribute_files_padding[0xFE0 - 0xFD2]; /* Intro */ int16_t intro_animation;