InputMask.cs 395 B

12345678910111213141516171819
  1. namespace Ryujinx.HLE.HOS.Tamper.Conditions
  2. {
  3. class InputMask : ICondition
  4. {
  5. private long _mask;
  6. private Parameter<long> _input;
  7. public InputMask(long mask, Parameter<long> input)
  8. {
  9. _mask = mask;
  10. _input = input;
  11. }
  12. public bool Evaluate()
  13. {
  14. return (_input.Value & _mask) != 0;
  15. }
  16. }
  17. }