mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 01:55:27 +00:00
22 lines
456 B
C#
22 lines
456 B
C#
|
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>();
|
||
|
}
|
||
|
}
|
||
|
}
|