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;
|
||||
}
|
||||
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);
|
||||
Global.OSD.AddGUIText(
|
||||
Watches[x].ToString(),
|
||||
Global.Config.DispRamWatchx,
|
||||
(Global.Config.DispRamWatchy + (x * 14)),
|
||||
alert,
|
||||
Color.Black,
|
||||
Color.White,
|
||||
0
|
||||
);
|
||||
for (int x = 0; x < Watches.Count; x++)
|
||||
{
|
||||
bool alert = Watches[x].IsSeparator ? false : Global.CheatList.IsActiveCheat(Watches[x].Domain, Watches[x].Address.Value);
|
||||
Global.OSD.AddGUIText(
|
||||
Watches[x].ToString(),
|
||||
Global.Config.DispRamWatchx,
|
||||
(Global.Config.DispRamWatchy + (x * 14)),
|
||||
alert,
|
||||
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()
|
||||
|
|
Loading…
Reference in New Issue