Ram Watch - fix bug where values are not updating after a power cycle/rom load/movie load

This commit is contained in:
adelikat 2012-08-15 01:35:17 +00:00
parent 0ed2ec1be9
commit 99f073266d
1 changed files with 13 additions and 2 deletions

View File

@ -44,11 +44,19 @@ namespace BizHawk.MultiClient
public void Restart()
{
if (!this.IsHandleCreated || this.IsDisposed) return;
if ((!this.IsHandleCreated || this.IsDisposed) && !Global.Config.DisplayRamWatch)
{
return;
}
if (currentFile.Length > 0)
{
LoadWatchFile(currentFile, false);
}
else
{
NewWatchList(true);
}
}
public List<Watch> GetRamWatchList()
@ -67,7 +75,10 @@ namespace BizHawk.MultiClient
public void UpdateValues()
{
if ((!this.IsHandleCreated || this.IsDisposed) && !Global.Config.DisplayRamWatch) return;
if ((!this.IsHandleCreated || this.IsDisposed) && !Global.Config.DisplayRamWatch)
{
return;
}
for (int x = 0; x < watchList.Count; x++)
{