When loading a ram watch file, default to main memory when unable to find the domain saved in the file
This commit is contained in:
parent
25b242ade4
commit
f3344863ac
|
@ -482,7 +482,7 @@ namespace BizHawk.Client.Common
|
|||
startIndex = line.IndexOf('\t') + 1;
|
||||
line = line.Substring(startIndex, line.Length - startIndex); //Domain
|
||||
temp = line.Substring(0, line.IndexOf('\t'));
|
||||
memDomain = Global.Emulator.MemoryDomains[temp];
|
||||
memDomain = Global.Emulator.MemoryDomains[temp] ?? Global.Emulator.MemoryDomains.MainMemory;
|
||||
}
|
||||
|
||||
startIndex = line.IndexOf('\t') + 1;
|
||||
|
|
Loading…
Reference in New Issue