Cheats/MemoryScan: Add Any operator

This commit is contained in:
Connor McLaughlin 2020-10-21 21:40:17 +10:00
parent a83439fd35
commit 0d387dfaca
3 changed files with 12 additions and 3 deletions

View file

@ -1023,6 +1023,9 @@ bool MemoryScan::Result::Filter(Operator op, u32 comp_value, bool is_signed) con
return is_signed ? (static_cast<s32>(value) <= static_cast<s32>(last_value)) : (value <= last_value); return is_signed ? (static_cast<s32>(value) <= static_cast<s32>(last_value)) : (value <= last_value);
} }
case Operator::Any:
return true;
default: default:
return false; return false;
} }

View file

@ -148,7 +148,8 @@ public:
GreaterThanLast, GreaterThanLast,
GreaterEqualLast, GreaterEqualLast,
LessThanLast, LessThanLast,
LessEqualLast LessEqualLast,
Any
}; };
struct Result struct Result

View file

@ -315,12 +315,12 @@
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>Equal to Previous</string> <string>Equal to Previous (Unchanged Value)</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>Not Equal to Previous</string> <string>Not Equal to Previous (Changed Value)</string>
</property> </property>
</item> </item>
<item> <item>
@ -343,6 +343,11 @@
<string>Less or Equal to Previous</string> <string>Less or Equal to Previous</string>
</property> </property>
</item> </item>
<item>
<property name="text">
<string>Any Value</string>
</property>
</item>
</widget> </widget>
</item> </item>
<item row="5" column="0"> <item row="5" column="0">