diff options
| author | TSR Berry <20988865+TSRBerry@users.noreply.github.com> | 2023-04-08 01:22:00 +0200 |
|---|---|---|
| committer | Mary <thog@protonmail.com> | 2023-04-27 23:51:14 +0200 |
| commit | cee712105850ac3385cd0091a923438167433f9f (patch) | |
| tree | 4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /Ryujinx.HLE/HOS/Tamper/Conditions | |
| parent | cd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff) | |
Move solution and projects to src
Diffstat (limited to 'Ryujinx.HLE/HOS/Tamper/Conditions')
| -rw-r--r-- | Ryujinx.HLE/HOS/Tamper/Conditions/CondEQ.cs | 21 | ||||
| -rw-r--r-- | Ryujinx.HLE/HOS/Tamper/Conditions/CondGE.cs | 21 | ||||
| -rw-r--r-- | Ryujinx.HLE/HOS/Tamper/Conditions/CondGT.cs | 21 | ||||
| -rw-r--r-- | Ryujinx.HLE/HOS/Tamper/Conditions/CondLE.cs | 21 | ||||
| -rw-r--r-- | Ryujinx.HLE/HOS/Tamper/Conditions/CondLT.cs | 21 | ||||
| -rw-r--r-- | Ryujinx.HLE/HOS/Tamper/Conditions/CondNE.cs | 21 | ||||
| -rw-r--r-- | Ryujinx.HLE/HOS/Tamper/Conditions/ICondition.cs | 7 | ||||
| -rw-r--r-- | Ryujinx.HLE/HOS/Tamper/Conditions/InputMask.cs | 19 |
8 files changed, 0 insertions, 152 deletions
diff --git a/Ryujinx.HLE/HOS/Tamper/Conditions/CondEQ.cs b/Ryujinx.HLE/HOS/Tamper/Conditions/CondEQ.cs deleted file mode 100644 index ad5bd223..00000000 --- a/Ryujinx.HLE/HOS/Tamper/Conditions/CondEQ.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Ryujinx.HLE.HOS.Tamper.Operations; - -namespace Ryujinx.HLE.HOS.Tamper.Conditions -{ - class CondEQ<T> : ICondition where T : unmanaged - { - private IOperand _lhs; - private IOperand _rhs; - - public CondEQ(IOperand lhs, IOperand rhs) - { - _lhs = lhs; - _rhs = rhs; - } - - public bool Evaluate() - { - return (dynamic)_lhs.Get<T>() == (dynamic)_rhs.Get<T>(); - } - } -} diff --git a/Ryujinx.HLE/HOS/Tamper/Conditions/CondGE.cs b/Ryujinx.HLE/HOS/Tamper/Conditions/CondGE.cs deleted file mode 100644 index d9ad6d81..00000000 --- a/Ryujinx.HLE/HOS/Tamper/Conditions/CondGE.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Ryujinx.HLE.HOS.Tamper.Operations; - -namespace Ryujinx.HLE.HOS.Tamper.Conditions -{ - class CondGE<T> : ICondition where T : unmanaged - { - private IOperand _lhs; - private IOperand _rhs; - - public CondGE(IOperand lhs, IOperand rhs) - { - _lhs = lhs; - _rhs = rhs; - } - - public bool Evaluate() - { - return (dynamic)_lhs.Get<T>() >= (dynamic)_rhs.Get<T>(); - } - } -} diff --git a/Ryujinx.HLE/HOS/Tamper/Conditions/CondGT.cs b/Ryujinx.HLE/HOS/Tamper/Conditions/CondGT.cs deleted file mode 100644 index 262457da..00000000 --- a/Ryujinx.HLE/HOS/Tamper/Conditions/CondGT.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Ryujinx.HLE.HOS.Tamper.Operations; - -namespace Ryujinx.HLE.HOS.Tamper.Conditions -{ - class CondGT<T> : ICondition where T : unmanaged - { - private IOperand _lhs; - private IOperand _rhs; - - public CondGT(IOperand lhs, IOperand rhs) - { - _lhs = lhs; - _rhs = rhs; - } - - public bool Evaluate() - { - return (dynamic)_lhs.Get<T>() > (dynamic)_rhs.Get<T>(); - } - } -} diff --git a/Ryujinx.HLE/HOS/Tamper/Conditions/CondLE.cs b/Ryujinx.HLE/HOS/Tamper/Conditions/CondLE.cs deleted file mode 100644 index fd488bc1..00000000 --- a/Ryujinx.HLE/HOS/Tamper/Conditions/CondLE.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Ryujinx.HLE.HOS.Tamper.Operations; - -namespace Ryujinx.HLE.HOS.Tamper.Conditions -{ - class CondLE<T> : ICondition where T : unmanaged - { - private IOperand _lhs; - private IOperand _rhs; - - public CondLE(IOperand lhs, IOperand rhs) - { - _lhs = lhs; - _rhs = rhs; - } - - public bool Evaluate() - { - return (dynamic)_lhs.Get<T>() <= (dynamic)_rhs.Get<T>(); - } - } -} diff --git a/Ryujinx.HLE/HOS/Tamper/Conditions/CondLT.cs b/Ryujinx.HLE/HOS/Tamper/Conditions/CondLT.cs deleted file mode 100644 index 744eb5dc..00000000 --- a/Ryujinx.HLE/HOS/Tamper/Conditions/CondLT.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Ryujinx.HLE.HOS.Tamper.Operations; - -namespace Ryujinx.HLE.HOS.Tamper.Conditions -{ - class CondLT<T> : ICondition where T : unmanaged - { - private IOperand _lhs; - private IOperand _rhs; - - public CondLT(IOperand lhs, IOperand rhs) - { - _lhs = lhs; - _rhs = rhs; - } - - public bool Evaluate() - { - return (dynamic)_lhs.Get<T>() < (dynamic)_rhs.Get<T>(); - } - } -} diff --git a/Ryujinx.HLE/HOS/Tamper/Conditions/CondNE.cs b/Ryujinx.HLE/HOS/Tamper/Conditions/CondNE.cs deleted file mode 100644 index 2709ad92..00000000 --- a/Ryujinx.HLE/HOS/Tamper/Conditions/CondNE.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Ryujinx.HLE.HOS.Tamper.Operations; - -namespace Ryujinx.HLE.HOS.Tamper.Conditions -{ - class CondNE<T> : ICondition where T : unmanaged - { - private IOperand _lhs; - private IOperand _rhs; - - public CondNE(IOperand lhs, IOperand rhs) - { - _lhs = lhs; - _rhs = rhs; - } - - public bool Evaluate() - { - return (dynamic)_lhs.Get<T>() != (dynamic)_rhs.Get<T>(); - } - } -} diff --git a/Ryujinx.HLE/HOS/Tamper/Conditions/ICondition.cs b/Ryujinx.HLE/HOS/Tamper/Conditions/ICondition.cs deleted file mode 100644 index f15ceffe..00000000 --- a/Ryujinx.HLE/HOS/Tamper/Conditions/ICondition.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Ryujinx.HLE.HOS.Tamper.Conditions -{ - interface ICondition - { - bool Evaluate(); - } -} diff --git a/Ryujinx.HLE/HOS/Tamper/Conditions/InputMask.cs b/Ryujinx.HLE/HOS/Tamper/Conditions/InputMask.cs deleted file mode 100644 index 8d75a0e1..00000000 --- a/Ryujinx.HLE/HOS/Tamper/Conditions/InputMask.cs +++ /dev/null @@ -1,19 +0,0 @@ -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; - } - } -} |
