all repos — mgba @ 243cd08c2a24e59d1be7a4e1d8faaa65231d8221

mGBA Game Boy Advance Emulator

GB: Properly initialize sramRealVf variable
Jeffrey Pfau jeffrey@endrift.com
Tue, 20 Dec 2016 18:04:31 -0800
commit

243cd08c2a24e59d1be7a4e1d8faaa65231d8221

parent

7b3a712d69aec98b059e0e4e2ae0fca9d3da430e

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

jump to
M CHANGESCHANGES

@@ -26,6 +26,7 @@ - GBA Video: Fix out of bounds sprite transforms

- GBA: Only unhalt CPU if appropriate bit is set in IE - GB: Fix crash when masking savedata - GB Audio: Fix serialization of channel 3 and NR52 properties + - GB: Properly initialize sramRealVf variable Misc: - PSP2: Improved controller rumble - GB, GBA: Prevent loading null ROMs
M src/gb/gb.csrc/gb/gb.c

@@ -68,9 +68,10 @@ gb->timer.p = gb;

gb->model = GB_MODEL_AUTODETECT; - gb->biosVf = 0; - gb->romVf = 0; - gb->sramVf = 0; + gb->biosVf = NULL; + gb->romVf = NULL; + gb->sramVf = NULL; + gb->sramRealVf = NULL; gb->pristineRom = 0; gb->pristineRomSize = 0;