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);
}
case Operator::Any:
return true;
default:
return false;
}

View file

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

View file

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