aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Tamper/Operations/OpLog.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Tamper/Operations/OpLog.cs')
-rw-r--r--src/Ryujinx.HLE/HOS/Tamper/Operations/OpLog.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Ryujinx.HLE/HOS/Tamper/Operations/OpLog.cs b/src/Ryujinx.HLE/HOS/Tamper/Operations/OpLog.cs
new file mode 100644
index 00000000..49f8b41e
--- /dev/null
+++ b/src/Ryujinx.HLE/HOS/Tamper/Operations/OpLog.cs
@@ -0,0 +1,21 @@
+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}");
+ }
+ }
+}