Fix some uninitialized reads

This commit is contained in:
Jeffrey Pfau 2014-10-15 02:13:46 -07:00
parent 4cf5b533fb
commit 70f94db208
1 changed files with 3 additions and 0 deletions

View File

@ -124,6 +124,7 @@ static void GBAInit(struct ARMCore* cpu, struct ARMComponent* component) {
GBAInterruptHandlerInit(&cpu->irqh);
GBAMemoryInit(gba);
GBASavedataInit(&gba->memory.savedata, 0);
gba->video.p = gba;
GBAVideoInit(&gba->video);
@ -151,6 +152,8 @@ static void GBAInit(struct ARMCore* cpu, struct ARMComponent* component) {
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) {