mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-10-03 14:25:50 -05:00
Move solution and projects to src
This commit is contained in:
24
src/Ryujinx.HLE/HOS/Tamper/Value.cs
Normal file
24
src/Ryujinx.HLE/HOS/Tamper/Value.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Ryujinx.HLE.HOS.Tamper.Operations;
|
||||
|
||||
namespace Ryujinx.HLE.HOS.Tamper
|
||||
{
|
||||
class Value<P> : IOperand where P : unmanaged
|
||||
{
|
||||
private P _value;
|
||||
|
||||
public Value(P value)
|
||||
{
|
||||
_value = value;
|
||||
}
|
||||
|
||||
public T Get<T>() where T : unmanaged
|
||||
{
|
||||
return (T)(dynamic)_value;
|
||||
}
|
||||
|
||||
public void Set<T>(T value) where T : unmanaged
|
||||
{
|
||||
_value = (P)(dynamic)value;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user