Move solution and projects to src
This commit is contained in:
parent
cd124bda58
commit
cee7121058
3466 changed files with 55 additions and 55 deletions
21
src/Ryujinx.HLE/HOS/Tamper/Conditions/CondEQ.cs
Normal file
21
src/Ryujinx.HLE/HOS/Tamper/Conditions/CondEQ.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
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>();
|
||||
}
|
||||
}
|
||||
}
|
21
src/Ryujinx.HLE/HOS/Tamper/Conditions/CondGE.cs
Normal file
21
src/Ryujinx.HLE/HOS/Tamper/Conditions/CondGE.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
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>();
|
||||
}
|
||||
}
|
||||
}
|
21
src/Ryujinx.HLE/HOS/Tamper/Conditions/CondGT.cs
Normal file
21
src/Ryujinx.HLE/HOS/Tamper/Conditions/CondGT.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
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>();
|
||||
}
|
||||
}
|
||||
}
|
21
src/Ryujinx.HLE/HOS/Tamper/Conditions/CondLE.cs
Normal file
21
src/Ryujinx.HLE/HOS/Tamper/Conditions/CondLE.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
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>();
|
||||
}
|
||||
}
|
||||
}
|
21
src/Ryujinx.HLE/HOS/Tamper/Conditions/CondLT.cs
Normal file
21
src/Ryujinx.HLE/HOS/Tamper/Conditions/CondLT.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
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>();
|
||||
}
|
||||
}
|
||||
}
|
21
src/Ryujinx.HLE/HOS/Tamper/Conditions/CondNE.cs
Normal file
21
src/Ryujinx.HLE/HOS/Tamper/Conditions/CondNE.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
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>();
|
||||
}
|
||||
}
|
||||
}
|
7
src/Ryujinx.HLE/HOS/Tamper/Conditions/ICondition.cs
Normal file
7
src/Ryujinx.HLE/HOS/Tamper/Conditions/ICondition.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
namespace Ryujinx.HLE.HOS.Tamper.Conditions
|
||||
{
|
||||
interface ICondition
|
||||
{
|
||||
bool Evaluate();
|
||||
}
|
||||
}
|
19
src/Ryujinx.HLE/HOS/Tamper/Conditions/InputMask.cs
Normal file
19
src/Ryujinx.HLE/HOS/Tamper/Conditions/InputMask.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue