all repos — mgba @ b5c62da07088347e8329cd27e130d7b7c3a315f3

mGBA Game Boy Advance Emulator

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

b5c62da07088347e8329cd27e130d7b7c3a315f3

parent

5ba2d00504a70bb3dd4ba7bd196d0ee851cc53d3

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

jump to
M CHANGESCHANGES

@@ -37,6 +37,7 @@ - GBA: Only unhalt CPU if appropriate bit is set in IE

- GBA Video: Fix out of bounds sprite transforms - GB: Fix crash when masking savedata - GB Audio: Fix serialization of channel 3 and NR52 properties + - GB: Properly initialize sramRealVf variable Misc: - SDL: Remove scancode key input - GBA Video: Clean up unused timers
M src/gb/gb.csrc/gb/gb.c

@@ -70,9 +70,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;