Ram Search/Ram Watch - when selecting "View in Hex Editor" pass the memory domain to the Hex Editor

This commit is contained in:
adelikat 2012-09-19 00:52:40 +00:00
parent 18f3da0f55
commit a9bd436b23
3 changed files with 9 additions and 0 deletions

View File

@ -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;

View File

@ -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);
}
}

View File

@ -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);
}
}