SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 4421dedbb962e9f0ef14c84e55db0779dafd1267 parent 479c16e698dcabbb954a4dff7ed0a326c31d4677 Author: Lior Halphon <LIJI32@gmail.com> Date: Tue, 11 Apr 2023 12:33:10 +0300 One last attempt Diffstat:
| M | Core/save_state.h | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Core/save_state.h b/Core/save_state.h @@ -19,7 +19,7 @@ #ifdef GB_INTERNAL #define GB_SECTION_OFFSET(name) (offsetof(GB_gameboy_t, name##_section_start)) #define GB_SECTION_SIZE(name) (offsetof(GB_gameboy_t, name##_section_end) - offsetof(GB_gameboy_t, name##_section_start)) -#define GB_GET_SECTION(gb, name) ((uint8_t (*)[GB_SECTION_SIZE(name)])&((gb)->name##_section_start)) +#define GB_GET_SECTION(gb, name) (void *)((uint8_t *)(gb) + GB_SECTION_OFFSET(name)) #endif #endif
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.