dborth / vbagx

Visual Boy Advance GX
http://wiibrew.org/wiki/Visual_Boy_Advance_GX
292 stars 36 forks source link

Fix MBC7 (specifically Kirby Tilt 'n' Tumble) data saving (Steelskin) #459

Closed saulfabregwiivc closed 10 months ago

saulfabregwiivc commented 10 months ago

Commit reference: https://github.com/visualboyadvance-m/visualboyadvance-m/commit/803ab352

Previously, MBC7 EEPROM was saved at address 0xa000 in memory, rather than inside the gbRam data buffer. This was inconsistent with other mappers, resulting in issues like the EEPROM data being cleared on gbReset.

This fixes specifically the data saving in Kirby: Tilt 'n' Tumble.

Fixes https://github.com/dborth/vbagx/issues/451.