mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-11-29 21:12:33 +01:00
22 lines
494 B
C#
22 lines
494 B
C#
|
using Ryujinx.Common.Logging;
|
||
|
|
||
|
namespace Ryujinx.HLE.HOS.Tamper.Operations
|
||
|
{
|
||
|
class OpLog<T> : IOperation where T : unmanaged
|
||
|
{
|
||
|
int _logId;
|
||
|
IOperand _source;
|
||
|
|
||
|
public OpLog(int logId, IOperand source)
|
||
|
{
|
||
|
_logId = logId;
|
||
|
_source = source;
|
||
|
}
|
||
|
|
||
|
public void Execute()
|
||
|
{
|
||
|
Logger.Debug?.Print(LogClass.TamperMachine, $"Tamper debug log id={_logId} value={(dynamic)_source.Get<T>():X}");
|
||
|
}
|
||
|
}
|
||
|
}
|