Fix Ram Poke for Ram Watch/Search dialogs

This commit is contained in:
adelikat 2012-06-02 21:07:29 +00:00
parent 6578371bca
commit a74fbb84fe
3 changed files with 10 additions and 3 deletions

View File

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

View File

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

View File

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