GB Memory: Initialize peripheral pointers

This commit is contained in:
Vicki Pfau 2017-07-25 18:34:39 -07:00
parent 010cb8f49d
commit bf8cc66a85
2 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ Bugfixes:
- GB Serialize: Fix audio state loading
- GB Video: Fix dot clock timing being slightly wrong
- GB MBC: Pocket Cam memory should be accessible without enabling
- GB Memory: Initialize peripheral pointers
Misc:
- GBA Timer: Use global cycles for timers
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)

View File

@ -103,6 +103,8 @@ void GBMemoryInit(struct GB* gb) {
gb->memory.mbcWrite = NULL;
gb->memory.rtc = NULL;
gb->memory.rotation = NULL;
gb->memory.rumble = NULL;
GBIOInit(gb);
}