all repos — mgba @ f6b8f9801cc7cab3eaca2b14870aac2f80065851

mGBA Game Boy Advance Emulator

All: Correct format strings for some numbers on Windows (fixes #1794)
Vicki Pfau vi@endrift.com
Sat, 20 Jun 2020 03:02:27 -0700
commit

f6b8f9801cc7cab3eaca2b14870aac2f80065851

parent

2bde27fd90fcfe0f6794675decd81a463fbfdc98

2 files changed, 3 insertions(+), 4 deletions(-)

jump to
M CHANGESCHANGES

@@ -4,6 +4,7 @@ - GB Memory: Fix OAM DMA from top 8 kB

- GB MBC: Fix MBC1 RAM enable bit selection - GB MBC: Fix MBC2 bit selection Other fixes: + - All: Correct format strings for some numbers on Windows (fixes mgba.io/i/1794) - GB Core: Fix extracting SRAM when none is present - GBA Savedata: Fix extracting save when not yet configured in-game Misc:
M include/mgba-util/common.hinclude/mgba-util/common.h

@@ -120,10 +120,8 @@

#if defined(_3DS) || defined(GEKKO) || defined(PSP2) // newlib doesn't support %z properly by default #define PRIz "" -#elif defined(_WIN64) -#define PRIz "I64" -#elif defined(_WIN32) -#define PRIz "" +#elif defined(_MSC_VER) +#define PRIz "I" #else #define PRIz "z" #endif