mirror of https://github.com/mgba-emu/mgba.git
GBA Memory: Fix Vast Fame support (fixes #1170)
This commit is contained in:
parent
9de8f084ba
commit
2e223c372a
1
CHANGES
1
CHANGES
|
@ -51,6 +51,7 @@ Bugfixes:
|
||||||
- GBA: Reset WAITCNT properly
|
- GBA: Reset WAITCNT properly
|
||||||
- GBA Serialize: Fix loading states in Hblank
|
- GBA Serialize: Fix loading states in Hblank
|
||||||
- PSP2: Fix more issues causing poor audio
|
- PSP2: Fix more issues causing poor audio
|
||||||
|
- GBA Memory: Fix Vast Fame support (taizou) (fixes mgba.io/i/1170)
|
||||||
Misc:
|
Misc:
|
||||||
- GBA Timer: Use global cycles for timers
|
- GBA Timer: Use global cycles for timers
|
||||||
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)
|
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)
|
||||||
|
|
|
@ -246,10 +246,8 @@ void GBAVFameSramWrite(struct GBAVFameCart* cart, uint32_t address, uint8_t valu
|
||||||
// if mode has been set - the address and value of the SRAM write will be modified
|
// if mode has been set - the address and value of the SRAM write will be modified
|
||||||
address = _modifySramAddress(cart->cartType, address, cart->sramMode);
|
address = _modifySramAddress(cart->cartType, address, cart->sramMode);
|
||||||
value = _modifySramValue(cart->cartType, value, cart->sramMode);
|
value = _modifySramValue(cart->cartType, value, cart->sramMode);
|
||||||
// these writes are mirrored
|
address &= (SIZE_CART_SRAM - 1);
|
||||||
address &= 0x7FFF;
|
|
||||||
sramData[address] = value;
|
sramData[address] = value;
|
||||||
sramData[address + 0x8000] = value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint32_t _modifySramAddress(enum GBAVFameCartType type, uint32_t address, int mode) {
|
static uint32_t _modifySramAddress(enum GBAVFameCartType type, uint32_t address, int mode) {
|
||||||
|
|
Loading…
Reference in New Issue