rename MemoryDomain.SystemBus to MemoryDomain.CheatDomain to better describe its intent
This commit is contained in:
parent
815cf4ab97
commit
c1cbad1b30
|
@ -38,9 +38,9 @@ namespace BizHawk.Client.EmuHawk
|
||||||
.Select(d => d.ToString())
|
.Select(d => d.ToString())
|
||||||
.ToArray());
|
.ToArray());
|
||||||
|
|
||||||
if (Core.MemoryDomains.HasSystemBus)
|
if (Core.MemoryDomains.HasCheatDomain)
|
||||||
{
|
{
|
||||||
DomainDropDown.SelectedItem = Core.MemoryDomains.SystemBus.ToString();
|
DomainDropDown.SelectedItem = Core.MemoryDomains.CheatDomain.ToString();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -105,7 +105,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().MemoryDomains.SystemBus.Size - 1
|
MaxAddressSize = Global.Emulator.AsMemoryDomains().MemoryDomains.CheatDomain.Size - 1
|
||||||
};
|
};
|
||||||
|
|
||||||
if (b.ShowDialog() == DialogResult.OK)
|
if (b.ShowDialog() == DialogResult.OK)
|
||||||
|
|
|
@ -29,7 +29,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return MemoryDomains.SystemBus.Size;
|
return MemoryDomains.CheatDomain.Size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,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.SystemBus, (ushort)a, out advance);
|
string line = Disassembler.Disassemble(MemoryDomains.CheatDomain, (ushort)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)
|
||||||
|
@ -100,7 +100,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
int bytestoadvance;
|
int bytestoadvance;
|
||||||
Disassembler.Disassemble(MemoryDomains.SystemBus, newaddress, out bytestoadvance);
|
Disassembler.Disassemble(MemoryDomains.CheatDomain, newaddress, out bytestoadvance);
|
||||||
if (newaddress + bytestoadvance == currentDisassemblerAddress)
|
if (newaddress + bytestoadvance == currentDisassemblerAddress)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -215,7 +215,7 @@ namespace BizHawk.Emulation.Common
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool HasSystemBus
|
public bool HasCheatDomain
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
@ -223,7 +223,7 @@ namespace BizHawk.Emulation.Common
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public MemoryDomain SystemBus
|
public MemoryDomain CheatDomain
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue