1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-19 12:32:01 +00:00
Ryujinx/Ryujinx.HLE/HOS/Tamper/Conditions/InputMask.cs

20 lines
399 B
C#
Raw Normal View History

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) == _mask;
}
}
}