git.y1.nz

SameBoy

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

commit c36c7126f8e66ed1d2dd549d261b400bc5b8a616
parent 7f3b3879a0e07ca8e4d7469d323d4ef34156d24e
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Wed,  1 Feb 2023 23:47:25 +0200

Hack to not break save state compatibility

Diffstat:
MCore/printer.h12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/Core/printer.h b/Core/printer.h @@ -49,8 +49,15 @@ typedef struct uint8_t image[160 * 200]; uint16_t image_offset; - - uint64_t idle_time; + + // TODO: fix this when breaking backwards compatibility +#ifdef GB_BIG_ENDIAN + uint32_t time_remaining; + uint32_t idle_time; +#else + uint32_t idle_time; + uint32_t time_remaining; +#endif uint8_t compression_run_lenth; bool compression_run_is_compressed; @@ -58,7 +65,6 @@ typedef struct uint8_t bits_received; uint8_t byte_being_received; bool bit_to_send; - uint64_t time_remaining; } GB_printer_t;

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