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:
parent
3d402ee40e
commit
e73a66b07e
|
@ -216,11 +216,15 @@ namespace BizHawk.Client.EmuHawk
|
||||||
return;
|
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.RefreshDomains(_memoryDomains);
|
||||||
_watches.Reload();
|
_watches.Reload();
|
||||||
UpdateStatusBar();
|
UpdateStatusBar();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue