Ram Search/Ram Watch - when selecting "View in Hex Editor" pass the memory domain to the Hex Editor
This commit is contained in:
parent
18f3da0f55
commit
a9bd436b23
|
@ -260,6 +260,13 @@ namespace BizHawk.MultiClient
|
|||
return null;
|
||||
}
|
||||
|
||||
public void SetDomain(MemoryDomain domain)
|
||||
{
|
||||
Domain = domain;
|
||||
int? theDomain = GetDomainInt(Domain.Name);
|
||||
SetMemoryDomain(theDomain ?? 0);
|
||||
}
|
||||
|
||||
public void Restart()
|
||||
{
|
||||
if (!this.IsHandleCreated || this.IsDisposed) return;
|
||||
|
|
|
@ -2604,6 +2604,7 @@ namespace BizHawk.MultiClient
|
|||
if (indexes.Count > 0)
|
||||
{
|
||||
Global.MainForm.LoadHexEditor();
|
||||
Global.MainForm.HexEditor1.SetDomain(Searches[indexes[0]].Domain);
|
||||
Global.MainForm.HexEditor1.GoToAddress(Searches[indexes[0]].Address);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1174,6 +1174,7 @@ namespace BizHawk.MultiClient
|
|||
if (indexes.Count > 0)
|
||||
{
|
||||
Global.MainForm.LoadHexEditor();
|
||||
Global.MainForm.HexEditor1.SetDomain(Watches[indexes[0]].Domain);
|
||||
Global.MainForm.HexEditor1.GoToAddress(Watches[indexes[0]].Address);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue