Ram Watch - show initial value of a watch when it is initially added (from adding it or loading a file). Fixes issue 74
This commit is contained in:
parent
81198cc89f
commit
a2a98415bf
|
@ -316,6 +316,10 @@ namespace BizHawk.MultiClient
|
||||||
|
|
||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
|
foreach (Watch w in watchList)
|
||||||
|
{
|
||||||
|
InitializeAddress(w);
|
||||||
|
}
|
||||||
if (!append)
|
if (!append)
|
||||||
{
|
{
|
||||||
currentFile = path;
|
currentFile = path;
|
||||||
|
@ -341,7 +345,7 @@ namespace BizHawk.MultiClient
|
||||||
return q;
|
return q;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddNewWatch()
|
private void AddNewWatch()
|
||||||
{
|
{
|
||||||
|
|
||||||
RamWatchNewWatch r = new RamWatchNewWatch();
|
RamWatchNewWatch r = new RamWatchNewWatch();
|
||||||
|
@ -350,16 +354,22 @@ namespace BizHawk.MultiClient
|
||||||
Global.Sound.StopSound();
|
Global.Sound.StopSound();
|
||||||
r.ShowDialog();
|
r.ShowDialog();
|
||||||
Global.Sound.StartSound();
|
Global.Sound.StartSound();
|
||||||
|
|
||||||
if (r.userSelected == true)
|
if (r.userSelected == true)
|
||||||
{
|
{
|
||||||
|
InitializeAddress(r.watch);
|
||||||
watchList.Add(r.watch);
|
watchList.Add(r.watch);
|
||||||
Changes();
|
Changes();
|
||||||
DisplayWatchList();
|
|
||||||
UpdateWatchCount();
|
UpdateWatchCount();
|
||||||
|
DisplayWatchList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void InitializeAddress(Watch w)
|
||||||
|
{
|
||||||
|
w.PeekAddress(Domain);
|
||||||
|
w.changecount = 0;
|
||||||
|
}
|
||||||
|
|
||||||
void Changes()
|
void Changes()
|
||||||
{
|
{
|
||||||
changes = true;
|
changes = true;
|
||||||
|
@ -424,6 +434,7 @@ namespace BizHawk.MultiClient
|
||||||
|
|
||||||
if (r.userSelected == true)
|
if (r.userSelected == true)
|
||||||
{
|
{
|
||||||
|
InitializeAddress(r.watch);
|
||||||
Changes();
|
Changes();
|
||||||
watchList.Add(r.watch);
|
watchList.Add(r.watch);
|
||||||
DisplayWatchList();
|
DisplayWatchList();
|
||||||
|
|
|
@ -53,7 +53,7 @@ namespace BizHawk.MultiClient
|
||||||
bigendian = BigEndian;
|
bigendian = BigEndian;
|
||||||
notes = Notes;
|
notes = Notes;
|
||||||
changecount = 0;
|
changecount = 0;
|
||||||
prev = 0;
|
prev = Value;
|
||||||
original = value;
|
original = value;
|
||||||
lastchange = 0;
|
lastchange = 0;
|
||||||
lastsearch = value;
|
lastsearch = value;
|
||||||
|
|
Loading…
Reference in New Issue