MemoryDomains - rename CheatDomain to SystemBus
This commit is contained in:
parent
d3a9535ade
commit
7b87f666a1
|
@ -38,9 +38,9 @@ namespace BizHawk.Client.EmuHawk
|
||||||
.Select(d => d.ToString())
|
.Select(d => d.ToString())
|
||||||
.ToArray());
|
.ToArray());
|
||||||
|
|
||||||
if (MemoryDomains.HasCheatDomain)
|
if (MemoryDomains.HasSystemBus)
|
||||||
{
|
{
|
||||||
DomainDropDown.SelectedItem = MemoryDomains.CheatDomain.ToString();
|
DomainDropDown.SelectedItem = MemoryDomains.SystemBus.ToString();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -99,7 +99,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
if (MemoryDomains != null)
|
if (MemoryDomains != null)
|
||||||
{
|
{
|
||||||
AddressBox.SetHexProperties(MemoryDomains.CheatDomain.Size);
|
AddressBox.SetHexProperties(MemoryDomains.SystemBus.Size);
|
||||||
}
|
}
|
||||||
|
|
||||||
ValueBox.ByteSize =
|
ValueBox.ByteSize =
|
||||||
|
|
|
@ -122,7 +122,7 @@ namespace BizHawk.Client.EmuHawk.tools.Debugger
|
||||||
var b = new AddBreakpointDialog
|
var b = new AddBreakpointDialog
|
||||||
{
|
{
|
||||||
// TODO: don't use Global.Emulator! Pass in an IMemoryDomains implementation from the parent tool
|
// TODO: don't use Global.Emulator! Pass in an IMemoryDomains implementation from the parent tool
|
||||||
MaxAddressSize = Global.Emulator.AsMemoryDomains().CheatDomain.Size - 1
|
MaxAddressSize = Global.Emulator.AsMemoryDomains().SystemBus.Size - 1
|
||||||
};
|
};
|
||||||
|
|
||||||
if (b.ShowDialog() == DialogResult.OK)
|
if (b.ShowDialog() == DialogResult.OK)
|
||||||
|
|
|
@ -29,7 +29,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return MemoryDomains.CheatDomain.Size;
|
return MemoryDomains.SystemBus.Size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
for (int i = 0; i < line_count; ++i)
|
for (int i = 0; i < line_count; ++i)
|
||||||
{
|
{
|
||||||
int advance;
|
int advance;
|
||||||
string line = Disassembler.Disassemble(MemoryDomains.CheatDomain, a, out advance);
|
string line = Disassembler.Disassemble(MemoryDomains.SystemBus, a, out advance);
|
||||||
DisassemblyLines.Add(new DisasmOp(a, advance, line));
|
DisassemblyLines.Add(new DisasmOp(a, advance, line));
|
||||||
a += (uint)advance;
|
a += (uint)advance;
|
||||||
if (a > BusMaxValue)
|
if (a > BusMaxValue)
|
||||||
|
@ -101,7 +101,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
int bytestoadvance;
|
int bytestoadvance;
|
||||||
Disassembler.Disassemble(MemoryDomains.CheatDomain, newaddress, out bytestoadvance);
|
Disassembler.Disassemble(MemoryDomains.SystemBus, newaddress, out bytestoadvance);
|
||||||
if (newaddress + bytestoadvance == currentDisassemblerAddress)
|
if (newaddress + bytestoadvance == currentDisassemblerAddress)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -238,7 +238,7 @@ namespace BizHawk.Emulation.Common
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool HasCheatDomain
|
public bool HasSystemBus
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
@ -246,7 +246,7 @@ namespace BizHawk.Emulation.Common
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public MemoryDomain CheatDomain
|
public MemoryDomain SystemBus
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,8 +15,8 @@ namespace BizHawk.Emulation.Common
|
||||||
|
|
||||||
MemoryDomain MainMemory { get; }
|
MemoryDomain MainMemory { get; }
|
||||||
|
|
||||||
bool HasCheatDomain { get; }
|
bool HasSystemBus { get; }
|
||||||
|
|
||||||
MemoryDomain CheatDomain { get; }
|
MemoryDomain SystemBus { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue