Commit Graph

17 Commits

Author SHA1 Message Date
Raphaël Zumer f380767fab Only store the GBA ROM header in save states
Also fix some potential crashes due to SRAM
state not being cleared correctly on state load.
2019-12-22 14:13:10 -05:00
Raphaël Zumer a57ba1368e Skip saving/loading GBA flash state if SRAM is null 2019-12-22 11:45:11 -05:00
Raphaël Zumer 2abdcc54dd Implement DoSavestate() for GBACart classes
Admittedly untested.
2019-12-19 00:12:40 -05:00
Raphaël Zumer 8172cbc170 Add DoSavestate() function to GBACart_SolarSensor
Still empty, but should be implemented along with the rest.
2019-12-18 23:35:14 -05:00
Raphaël Zumer f257b007a2 Properly pass through GBA GPIO writes 2019-12-10 19:10:14 -05:00
Raphaël Zumer ca9f183d24 Hook up solar sensor control to the UI
It uses hardcoded keypad left and right arrows.
2019-12-10 17:54:35 -05:00
Raphaël Zumer f6cd66e5b1 Implement solar sensor processing 2019-12-10 17:43:25 -05:00
Raphaël Zumer 9128517b90 Add basic GBA GPIO support, solar sensor detection 2019-12-10 16:36:39 -05:00
Raphaël Zumer 0092937148 Rename SRAMFlash to SRAMFlashState 2019-12-10 16:36:00 -05:00
Raphaël Zumer 4d1f3d419e Clarify comments and credit DeSmuME for Flash I/O 2019-12-10 09:57:15 -05:00
Raphaël Zumer 68d3474458 Fix GBA Flash read/writes and clean up 2019-12-09 07:37:09 -05:00
Raphaël Zumer 8fc9a33a9f Implement GBA cartridge Flash reading and writing 2019-12-09 06:10:26 -05:00
Raphaël Zumer 4e8b0c8ce4 Eject GBA cartridges on stop from the UI 2019-12-09 06:09:30 -05:00
Raphaël Zumer 5ad85f15c1 Add a framework to support non-SRAM GBA saves
The support is not yet there, but at least
we should not read or write bogus data.
2019-12-09 04:58:54 -05:00
Raphaël Zumer 62b9f51e23 Handle GBA cartridge SRAM writes 2019-12-08 21:20:01 -05:00
Raphaël Zumer 48a8a25548 Reset GBA cartridge state when loading a new ROM 2019-12-08 17:13:56 -05:00
Raphaël Zumer d86ee1d5bf Add GBA cart model and allow reading from it 2019-12-08 15:30:07 -05:00