When ram watch is open with a file open, and loading another rom, only keep the ram watch file open if all the domains are compatible, else close it, addresses #285. There is arguably not a black and white expectation in this scenario but I think this is marginally more expected than exceptions and erroneous watch values

This commit is contained in:
adelikat 2016-11-12 11:46:32 -06:00
parent 3d402ee40e
commit e73a66b07e
1 changed files with 5 additions and 1 deletions

View File

@ -216,11 +216,15 @@ namespace BizHawk.Client.EmuHawk
return;
}
if (_watches != null && !string.IsNullOrWhiteSpace(_watches.CurrentFileName))
if (_watches != null
&& !string.IsNullOrWhiteSpace(_watches.CurrentFileName)
&& _watches.All(w => _memoryDomains.Contains(w.Domain)))
{
_watches.RefreshDomains(_memoryDomains);
_watches.Reload();
UpdateStatusBar();
}
else
{