mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
Cheats/MemoryScan: Add Any operator
This commit is contained in:
parent
a83439fd35
commit
0d387dfaca
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -148,7 +148,8 @@ public:
|
|||
GreaterThanLast,
|
||||
GreaterEqualLast,
|
||||
LessThanLast,
|
||||
LessEqualLast
|
||||
LessEqualLast,
|
||||
Any
|
||||
};
|
||||
|
||||
struct Result
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue