Fix Ram Watch on screen feature so that it still works when Ram Watch is closed

This commit is contained in:
adelikat 2013-11-24 16:00:10 +00:00
parent cba844d607
commit 544f4855fa
1 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using BizHawk.Client.Common;
namespace BizHawk.Client.EmuHawk
{
public class ToolManager
@ -81,7 +83,8 @@ namespace BizHawk.Client.EmuHawk
var beforeList = _tools.Where(x => x.UpdateBefore);
foreach (var tool in beforeList)
{
if (!tool.IsDisposed)
if (!tool.IsDisposed ||
(tool is RamWatch && Global.Config.DisplayRamWatch)) //Ram Watch hack, on screen display should run even if Ram Watch is closed
{
tool.UpdateValues();
}