Ram Watch - set the CurrentFileName property during LoadFile, fixes some subtle bugs that resulted from a loaded watch with an empty name

This commit is contained in:
adelikat 2014-05-11 12:09:41 +00:00
parent f697a52c56
commit 653fb0ff38
2 changed files with 1 additions and 2 deletions

View File

@ -525,6 +525,7 @@ namespace BizHawk.Client.Common
}
Domain = Global.Emulator.MemoryDomains[domain] ?? Global.Emulator.MemoryDomains.MainMemory;
_currentFilename = path;
}
if (!append)

View File

@ -517,8 +517,6 @@ namespace BizHawk.Client.EmuHawk
}
}
var test1 = _watches.Any(watch => (watch.Address ?? 0) >= watch.Domain.Size);
ErrorIconButton.Visible = _watches.Any(watch => (watch.Address ?? 0) >= watch.Domain.Size);
MessageLabel.Text = message;