mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-07-05 10:39:04 +00:00
Move solution and projects to src
This commit is contained in:
28
src/Ryujinx.HLE/HOS/Tamper/Register.cs
Normal file
28
src/Ryujinx.HLE/HOS/Tamper/Register.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Ryujinx.Common.Logging;
|
||||
using Ryujinx.HLE.HOS.Tamper.Operations;
|
||||
|
||||
namespace Ryujinx.HLE.HOS.Tamper
|
||||
{
|
||||
class Register : IOperand
|
||||
{
|
||||
private ulong _register = 0;
|
||||
private string _alias;
|
||||
|
||||
public Register(string alias)
|
||||
{
|
||||
_alias = alias;
|
||||
}
|
||||
|
||||
public T Get<T>() where T : unmanaged
|
||||
{
|
||||
return (T)(dynamic)_register;
|
||||
}
|
||||
|
||||
public void Set<T>(T value) where T : unmanaged
|
||||
{
|
||||
Logger.Debug?.Print(LogClass.TamperMachine, $"{_alias}: {value}");
|
||||
|
||||
_register = (ulong)(dynamic)value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user