OpNot.cs 434 B

12345678910111213141516171819
  1. namespace Ryujinx.HLE.HOS.Tamper.Operations
  2. {
  3. class OpNot<T> : IOperation where T : unmanaged
  4. {
  5. IOperand _destination;
  6. IOperand _source;
  7. public OpNot(IOperand destination, IOperand source)
  8. {
  9. _destination = destination;
  10. _source = source;
  11. }
  12. public void Execute()
  13. {
  14. _destination.Set((T)(~(dynamic)_source.Get<T>()));
  15. }
  16. }
  17. }