Fix Ram Poke for Ram Watch/Search dialogs
This commit is contained in:
parent
6578371bca
commit
a74fbb84fe
|
@ -25,13 +25,15 @@ namespace BizHawk.MultiClient
|
|||
|
||||
public void SetWatchObject(Watch w, MemoryDomain d)
|
||||
{
|
||||
watch = w;
|
||||
PopulateMemoryDomainComboBox();
|
||||
watch = new Watch(w);
|
||||
domain = d;
|
||||
}
|
||||
|
||||
private void RamPoke_Load(object sender, EventArgs e)
|
||||
{
|
||||
PopulateMemoryDomainComboBox();
|
||||
if (watch.address == 0)
|
||||
PopulateMemoryDomainComboBox();
|
||||
SetTypeRadio(watch.type);
|
||||
SetSignedRadio(watch.signed);
|
||||
if (watch.signed == asigned.HEX)
|
||||
|
|
|
@ -471,10 +471,13 @@ namespace BizHawk.MultiClient
|
|||
RamPoke p = new RamPoke();
|
||||
Global.Sound.StartSound();
|
||||
|
||||
int x = indexes[0];
|
||||
Watch bob = searchList[indexes[0]];
|
||||
if (indexes.Count > 0)
|
||||
p.SetWatchObject(searchList[indexes[0]], Domain);
|
||||
p.location = GetPromptPoint();
|
||||
p.ShowDialog();
|
||||
UpdateValues();
|
||||
}
|
||||
|
||||
private void PoketoolStripButton1_Click(object sender, EventArgs e)
|
||||
|
|
|
@ -927,11 +927,13 @@ namespace BizHawk.MultiClient
|
|||
ListView.SelectedIndexCollection indexes = WatchListView.SelectedIndices;
|
||||
Global.Sound.StopSound();
|
||||
RamPoke p = new RamPoke();
|
||||
Global.Sound.StartSound();
|
||||
if (indexes.Count > 0)
|
||||
p.SetWatchObject(watchList[indexes[0]], Domain);
|
||||
p.location = GetPromptPoint();
|
||||
p.ShowDialog();
|
||||
Global.Sound.StartSound();
|
||||
UpdateValues();
|
||||
|
||||
}
|
||||
|
||||
private void pokeAddressToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
|
|
Loading…
Reference in New Issue