public void Restart() { if ((!IsHandleCreated || IsDisposed) && !Global.Config.DisplayRamWatch) { return; } if (_watches != null && !string.IsNullOrWhiteSpace(_watches.CurrentFileName)) { _watches.RefreshDomains(_memoryDomains); _watches.Reload(); UpdateStatusBar(); } else { _watches = new WatchList(_memoryDomains, _emu.SystemId); NewWatchList(true); } }
public void Restart() { if ((!IsHandleCreated || IsDisposed) && !Global.Config.DisplayRamWatch) { return; } if (_watches != null && !string.IsNullOrWhiteSpace(_watches.CurrentFileName) && _watches.All(w => w.Domain == null || _memoryDomains.Select(m => m.Name).Contains(w.Domain.Name)) && (Global.Config.RecentWatches.AutoLoad || (IsHandleCreated || !IsDisposed))) { _watches.RefreshDomains(_memoryDomains); _watches.Reload(); UpdateStatusBar(); } else { _watches = new WatchList(_memoryDomains, _emu.SystemId); NewWatchList(true); } }
/// <summary> /// Restart is called the first time you call the form /// but also when you start playing a movie /// </summary> public void Restart() { //set a client padding ClientApi.SetExtraPadding(50, 50); if (Global.Game.Name != "Null") { //first initialization of WatchList if (_watches == null) { _watches = new WatchList(_memoryDomains, _emu.SystemId ?? string.Empty); //Create some watch Watch myFirstWatch = Watch.GenerateWatch(_memoryDomains.MainMemory, 0x40, WatchSize.Byte, BizHawk.Client.Common.DisplayType.Hex, true); Watch mySecondWatch = Watch.GenerateWatch(_memoryDomains.MainMemory, 0x50, WatchSize.Word, BizHawk.Client.Common.DisplayType.Unsigned, true); Watch myThirdWatch = Watch.GenerateWatch(_memoryDomains.MainMemory, 0x60, WatchSize.DWord, BizHawk.Client.Common.DisplayType.Hex, true); //add them into the list _watches.Add(myFirstWatch); _watches.Add(mySecondWatch); _watches.Add(myThirdWatch); label_Game.Text = string.Format("You're playing {0}", Global.Game.Name); label_GameHash.Text = string.Format("Hash: {0}", Global.Game.Hash); } //refresh it else { _watches.RefreshDomains(_memoryDomains); label_Game.Text = string.Format("You're playing {0}", Global.Game.Name); label_GameHash.Text = string.Format("Hash: {0}", Global.Game.Hash); } } else { label_Game.Text = string.Format("You aren't playing to anything"); label_GameHash.Text = string.Empty; } }
public override void Restart() { if ((!IsHandleCreated || IsDisposed) && !Config.DisplayRamWatch) { return; } if (_watches != null && !string.IsNullOrWhiteSpace(_watches.CurrentFileName) && _watches.All(w => w.Domain == null || MemoryDomains.Select(m => m.Name).Contains(w.Domain.Name)) && (Config.RecentWatches.AutoLoad || (IsHandleCreated || !IsDisposed))) { _watches.RefreshDomains(MemoryDomains, Config.RamWatchDefinePrevious); _watches.Reload(); GeneralUpdate(); UpdateStatusBar(); } else { _watches = new WatchList(MemoryDomains, Emu.SystemId); NewWatchList(true); } }