Skip to content

Commit

Permalink
GBA Memory: Fix Vast Fame support (fixes mgba-emu#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzlion committed Sep 15, 2018
1 parent b03412a commit 7962266
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/gba/vfame.c
Expand Up @@ -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
address = _modifySramAddress(cart->cartType, address, cart->sramMode);
value = _modifySramValue(cart->cartType, value, cart->sramMode);
// these writes are mirrored
address &= 0x7FFF;
sramData[address] = value;
sramData[address + 0x8000] = value;
}

static uint32_t _modifySramAddress(enum GBAVFameCartType type, uint32_t address, int mode) {
Expand Down

0 comments on commit 7962266

Please sign in to comment.