RamWatch: fix bug where the "Value" column showed previous and not current

This commit is contained in:
goyuken 2012-10-04 21:01:58 +00:00
parent 55b2e74dac
commit ab3377184a
1 changed files with 9 additions and 17 deletions

View File

@ -235,23 +235,15 @@ namespace BizHawk.MultiClient
return;
}
switch(column)
switch (column)
{
case 0:
case 0: // address
text = Watches[index].Address.ToString(addressFormatStr);
break;
case 1:
switch(Global.Config.RamWatchPrev_Type)
{
case 1:
text = Watches[index].PrevString;
break;
case 2:
text = Watches[index].LastChangeString;
break;
}
case 1: // value
text = Watches[index].ValueString;
break;
case 2:
case 2: // prev
switch (Global.Config.RamWatchPrev_Type)
{
case 1:
@ -262,10 +254,10 @@ namespace BizHawk.MultiClient
break;
}
break;
case 3:
case 3: // changes
text = Watches[index].Changecount.ToString();
break;
case 4:
case 4: // diff
switch (Global.Config.RamWatchPrev_Type)
{
case 1:
@ -276,10 +268,10 @@ namespace BizHawk.MultiClient
break;
}
break;
case 5:
case 5: // domain
text = Watches[index].Domain.Name;
break;
case 6:
case 6: // notes
text = Watches[index].Notes;
break;
}