public void ActivateCheat(Process Proc) { try { AobScan Scan = new AobScan(); foreach (IntPtr add in Addresses) { Scan.WriteArray(Proc, add, ChangeToCode); } } catch (Exception ex) { System.Windows.Forms.MessageBox.Show(ex.ToString()); } }
public void DeactivateCheat(Process Proc) { try { foreach (IntPtr add in Addresses) { AobScan Scan = new AobScan(); if (DisabledCode == "") { DisabledCode = ScanCode; } Scan.WriteArray(Proc, add, DisabledCode); } } catch (Exception ex) { System.Windows.Forms.MessageBox.Show(ex.ToString()); } }