mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 08:05:41 +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);
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,7 +148,8 @@ public:
|
||||||
GreaterThanLast,
|
GreaterThanLast,
|
||||||
GreaterEqualLast,
|
GreaterEqualLast,
|
||||||
LessThanLast,
|
LessThanLast,
|
||||||
LessEqualLast
|
LessEqualLast,
|
||||||
|
Any
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Result
|
struct Result
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue