Fix autoloading of Ram Watch
This commit is contained in:
parent
47d1e480da
commit
38c1ffa1e9
|
@ -729,15 +729,16 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
public void LoadRamWatch(bool loadDialog)
|
public void LoadRamWatch(bool loadDialog)
|
||||||
{
|
{
|
||||||
if (Global.Emulator.HasMemoryDomains())
|
Load<RamWatch>();
|
||||||
if (!IsLoaded<RamWatch>() && Global.Config.RecentWatches.AutoLoad && !Global.Config.RecentWatches.Empty)
|
|
||||||
|
if (Global.Config.RecentWatches.AutoLoad && !Global.Config.RecentWatches.Empty)
|
||||||
{
|
{
|
||||||
GlobalWin.Tools.RamWatch.LoadFileFromRecent(Global.Config.RecentWatches.MostRecent);
|
RamWatch.LoadFileFromRecent(Global.Config.RecentWatches.MostRecent);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (loadDialog)
|
if (!loadDialog)
|
||||||
{
|
{
|
||||||
GlobalWin.Tools.Load<RamWatch>();
|
Get<RamWatch>().Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -156,7 +156,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
public void LoadFileFromRecent(string path)
|
public void LoadFileFromRecent(string path)
|
||||||
{
|
{
|
||||||
var ask_result = true;
|
var ask_result = true;
|
||||||
if (_watches != null && _watches.Changes)
|
if (_watches.Changes)
|
||||||
{
|
{
|
||||||
ask_result = AskSaveChanges();
|
ask_result = AskSaveChanges();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue