Exemplo n.º 1
0
        public bool Revert()
        {
            if (!Detoured)
            {
                return(false);
            }
            bool result = OverrideUtilities.RevertOverride(OffsetBackup);

            if (result)
            {
                Detoured = false;
            }

            return(result);
        }
Exemplo n.º 2
0
        public bool Override()
        {
            if (Detoured)
            {
                return(true);
            }
            bool result = OverrideUtilities.OverrideFunction(PtrOriginal, PtrModified);

            if (result)
            {
                Detoured = true;
            }

            return(result);
        }