Ram Watch - don't refresh dialog if no addresses (keeps the dialog from slowing the emulator down when it has no watches)
This commit is contained in:
parent
a40bda3263
commit
3857c27f93
|
@ -53,30 +53,35 @@ namespace BizHawk.MultiClient
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Watches.UpdateValues();
|
|
||||||
|
|
||||||
if (Global.Config.DisplayRamWatch)
|
if (Watches.Any())
|
||||||
{
|
{
|
||||||
for (int x = 0; x < Watches.Count; x++)
|
Watches.UpdateValues();
|
||||||
|
|
||||||
|
if (Global.Config.DisplayRamWatch)
|
||||||
{
|
{
|
||||||
bool alert = Watches[x].IsSeparator ? false : Global.CheatList.IsActiveCheat(Watches[x].Domain, Watches[x].Address.Value);
|
for (int x = 0; x < Watches.Count; x++)
|
||||||
Global.OSD.AddGUIText(
|
{
|
||||||
Watches[x].ToString(),
|
bool alert = Watches[x].IsSeparator ? false : Global.CheatList.IsActiveCheat(Watches[x].Domain, Watches[x].Address.Value);
|
||||||
Global.Config.DispRamWatchx,
|
Global.OSD.AddGUIText(
|
||||||
(Global.Config.DispRamWatchy + (x * 14)),
|
Watches[x].ToString(),
|
||||||
alert,
|
Global.Config.DispRamWatchx,
|
||||||
Color.Black,
|
(Global.Config.DispRamWatchy + (x * 14)),
|
||||||
Color.White,
|
alert,
|
||||||
0
|
Color.Black,
|
||||||
);
|
Color.White,
|
||||||
|
0
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (!IsHandleCreated || IsDisposed) return;
|
||||||
|
|
||||||
|
WatchListView.BlazingFast = true;
|
||||||
|
WatchListView.Refresh();
|
||||||
|
WatchListView.BlazingFast = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!IsHandleCreated || IsDisposed) return;
|
|
||||||
|
|
||||||
WatchListView.BlazingFast = true;
|
|
||||||
WatchListView.Refresh();
|
|
||||||
WatchListView.BlazingFast = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Restart()
|
public void Restart()
|
||||||
|
|
Loading…
Reference in New Issue