expose SRAM for GBA rcheevos

see https://github.com/RetroAchievements/rcheevos/pull/265
This commit is contained in:
CasualPokePlayer 2023-09-11 21:29:34 -07:00
parent c08edb3df3
commit ed0dbb77ae
1 changed files with 5 additions and 1 deletions

View File

@ -372,7 +372,6 @@ namespace BizHawk.Client.EmuHawk
[ConsoleID.MasterSystem] = new[] { (0xC000, 0x2000) },
[ConsoleID.GameGear] = new[] { (0xC000, 0x2000) },
[ConsoleID.Colecovision] = new[] { (0x6000, 0x400) },
[ConsoleID.GBA] = new[] { (0x3000000, 0x8000), (0x2000000, 0x40000) },
[ConsoleID.SG1000] = new[] { (0xC000, 0x2000), (0x2000, 0x2000), (0x8000, 0x2000) },
};
@ -487,6 +486,11 @@ namespace BizHawk.Client.EmuHawk
}
}
break;
case ConsoleID.GBA:
mfs.Add(new(domains["IWRAM"], 0, domains["IWRAM"].Size));
mfs.Add(new(domains["EWRAM"], 0, domains["EWRAM"].Size));
mfs.Add(new(domains["SRAM"], 0, domains["SRAM"].Size));
break;
case ConsoleID.SegaCD:
mfs.Add(new(domains["68K RAM"], 0, domains["68K RAM"].Size, 1));
mfs.Add(new(domains["CD PRG RAM"], 0, domains["CD PRG RAM"].Size, 1));