public override ValueReadCompareResult ReadCompareValue(IntPtr scanAddress)
        {
            var newRezult = new ValueReadCompareResult();

            uint compareValue;

            if (HasReadLastPointer && CanUsePointerValue)
            {
                compareValue = (uint)LastReadPointer.ToInt64();
            }
            else
            {
                compareValue = M.ReadUInt(scanAddress);
            }

            //newRezult.IsSatisfying = CompareValue == compareValue;
            newRezult.IsSatisfying = CheckSatisfies(CompareValue, compareValue);

            if (newRezult.IsSatisfying)
            {
                newRezult.DisplayValue    = compareValue.ToString();
                newRezult.ComparableValue = compareValue;
            }

            return(newRezult);
        }
        public override ValueReadCompareResult ReadCompareValue(IntPtr scanAddress)
        {
            var newRezult = new ValueReadCompareResult();

            long compareValue;

            if (HasReadLastPointer && CanUsePointerValue)
            {
                compareValue = LastReadPointer.ToInt64();
            }
            else
            {
                compareValue = M.ReadLong(scanAddress);
            }

            //newRezult.IsSatisfying = Math.Abs(CompareValue - compareValue) < float.Epsilon;
            newRezult.IsSatisfying = CheckSatisfies(CompareValue, compareValue);

            if (newRezult.IsSatisfying)
            {
                newRezult.DisplayValue    = LastReadPointer.ToString();
                newRezult.ComparableValue = compareValue;
            }

            return(newRezult);
        }
Esempio n. 3
0
        public override ValueReadCompareResult ReadCompareValue(IntPtr scanAddress)
        {
            var newRezult = new ValueReadCompareResult();

            if (!HasReadLastPointer)
            {
                return(newRezult);
            }

            //newRezult.IsSatisfying = CompareValue == LastReadPointer;
            newRezult.IsSatisfying = CheckSatisfies((long)CompareValue, (long)LastReadPointer);

            if (newRezult.IsSatisfying)
            {
                newRezult.DisplayValue    = LastReadPointer.ToString("x");
                newRezult.ComparableValue = (long)LastReadPointer;
            }

            return(newRezult);
        }