public RamPoke(IEnumerable <Watch> watches, CheatCollection cheats)
 {
     _watchList = watches
                  .Where(w => !w.IsSeparator)        // Weed out separators just in case
                  .ToList();
     _cheats = cheats;
     InitializeComponent();
     Icon = Properties.Resources.PokeIcon;
 }
Beispiel #2
0
		public static void UpdateCheatRelatedTools(object sender, CheatCollection.CheatListEventArgs e)
		{
			if (Global.Emulator.HasMemoryDomains())
			{
				GlobalWin.Tools.UpdateValues<RamWatch>();
				GlobalWin.Tools.UpdateValues<RamSearch>();
				GlobalWin.Tools.UpdateValues<HexEditor>();

				if (GlobalWin.Tools.Has<Cheats>())
				{
					GlobalWin.Tools.Cheats.UpdateDialog();
				}

				GlobalWin.MainForm.UpdateCheatStatus();
			}
		}