When adding an address to ram watch from another ram tool, don't load ram watch if it is already open

This commit is contained in:
adelikat 2015-06-21 00:21:36 +00:00
parent 1f0c994b46
commit aa75bd52e9
1 changed files with 4 additions and 1 deletions

View File

@ -752,8 +752,11 @@ namespace BizHawk.Client.EmuHawk
#region Specialized Tool Loading Logic #region Specialized Tool Loading Logic
public void LoadRamWatch(bool loadDialog) public void LoadRamWatch(bool loadDialog)
{
if (!IsLoaded<RamWatch>())
{ {
Load<RamWatch>(); Load<RamWatch>();
}
if (IsAvailable<RamWatch>()) // Just because we attempted to load it, doesn't mean it was, the current core may not have the correct dependencies if (IsAvailable<RamWatch>()) // Just because we attempted to load it, doesn't mean it was, the current core may not have the correct dependencies
{ {