Fix z80 bus not being added for gpgx mem domains

This commit is contained in:
CasualPokePlayer 2024-04-30 20:11:13 -07:00
parent e9af682975
commit 8b45f93aad
1 changed files with 4 additions and 2 deletions

View File

@ -29,8 +29,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
var oneByteWidth = name is "Z80 RAM" or "Main RAM" or "ROM" or "Cart (Volatile) RAM" or "SRAM";
var endian = oneByteWidth
? MemoryDomain.Endian.Little
: MemoryDomain.Endian.Big;
? MemoryDomain.Endian.Little
: MemoryDomain.Endian.Big;
if (name == "VRAM")
{
@ -178,6 +178,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
if (a > 0xFFFF) throw new ArgumentOutOfRangeException(paramName: nameof(addr), a, message: "address out of range");
Core.gpgx_write_z80_bus(a, val);
}, 1);
mm.Add(systemBus);
}
mm.Add(_elf.GetPagesDomain());