fix ramwatch crashing bug involving core reboots and watchlist hanging on to stale emulator instances
This commit is contained in:
parent
1e26688c19
commit
75df712563
|
@ -39,7 +39,7 @@ namespace BizHawk.Client.Common
|
|||
private static readonly WatchChangeCountComparer changeCountComparer = new WatchChangeCountComparer();
|
||||
private static readonly WatchNoteComparer noteComparer = new WatchNoteComparer();
|
||||
|
||||
private static IMemoryDomains _memoryDomains;
|
||||
private IMemoryDomains _memoryDomains;
|
||||
|
||||
private List<Watch> _watchList = new List<Watch>(0);
|
||||
private string _currentFilename = string.Empty;
|
||||
|
@ -58,11 +58,7 @@ namespace BizHawk.Client.Common
|
|||
/// <param name="systemid">System identifier (NES, SNES, ...)</param>
|
||||
public WatchList(IMemoryDomains core, string systemid)
|
||||
{
|
||||
if (_memoryDomains == null)
|
||||
{
|
||||
_memoryDomains = core;
|
||||
}
|
||||
|
||||
_memoryDomains = core;
|
||||
_systemid = systemid;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue