public void EnableDebug(bool enable)
        {
            if (!debugEnabled.HasValue || enable != debugEnabled.Value)
            {
                if (CheatsHandler.GetPointer(Program) == IntPtr.Zero)
                {
                    return;
                }

                DebugControls.Write <bool>(Program, enable, 0xb8, 0x8);
                CheatsHandler.Write <bool>(Program, enable, 0xb8, 0x0, 0x20);
                CheatsHandler.Write <short>(Program, enable ? (short)0x0101 : (short)0x0, 0xb8, 0x8);

                debugEnabled = enable;
            }
        }
        public void PatchNoPause(bool patch)
        {
            if (!noPausePatched.HasValue || patch != noPausePatched.Value)
            {
                if (NoPausePatch.GetPointer(Program) == IntPtr.Zero)
                {
                    return;
                }

                if (patch)
                {
                    NoPausePatch.Write(Program, new byte[] { 0xFF, 0xC5, 0x90 });
                }
                else
                {
                    NoPausePatch.Write(Program, new byte[] { 0x0F, 0xB6, 0xEA });
                }
                noPausePatched = patch;
            }
        }
 public void SetDifficulty(int difficulty)
 {
     //DifficultyController.Instance.Difficulty
     DifficultyController.Write <int>(Program, difficulty, 0xb8, 0x0, 0x20);
 }