all repos — mgba @ 70f94db208293a100b46bda90d6c9b6f720de6c1

mGBA Game Boy Advance Emulator

Fix some uninitialized reads
Jeffrey Pfau jeffrey@endrift.com
Wed, 15 Oct 2014 02:13:46 -0700
commit

70f94db208293a100b46bda90d6c9b6f720de6c1

parent

4cf5b533fb460a21c492c706692cbf94fdffd6ec

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/gba/gba.csrc/gba/gba.c

@@ -124,6 +124,7 @@ gba->debugger = 0;

GBAInterruptHandlerInit(&cpu->irqh); GBAMemoryInit(gba); + GBASavedataInit(&gba->memory.savedata, 0); gba->video.p = gba; GBAVideoInit(&gba->video);

@@ -151,6 +152,8 @@

gba->logLevel = GBA_LOG_INFO | GBA_LOG_WARN | GBA_LOG_ERROR | GBA_LOG_FATAL; gba->biosChecksum = GBAChecksum(gba->memory.bios, SIZE_BIOS); + + gba->busyLoop = -1; } void GBADestroy(struct GBA* gba) {