mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-27 12:33:00 +00:00
20 lines
395 B
C#
20 lines
395 B
C#
|
namespace Ryujinx.HLE.HOS.Tamper.Conditions
|
||
|
{
|
||
|
class InputMask : ICondition
|
||
|
{
|
||
|
private long _mask;
|
||
|
private Parameter<long> _input;
|
||
|
|
||
|
public InputMask(long mask, Parameter<long> input)
|
||
|
{
|
||
|
_mask = mask;
|
||
|
_input = input;
|
||
|
}
|
||
|
|
||
|
public bool Evaluate()
|
||
|
{
|
||
|
return (_input.Value & _mask) != 0;
|
||
|
}
|
||
|
}
|
||
|
}
|