mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-30 23:47:10 +02:00
21 lines
457 B
C#
21 lines
457 B
C#
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>();
|
|
}
|
|
}
|
|
}
|