mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-11-23 02:06:55 +01:00
20 lines
419 B
C#
20 lines
419 B
C#
|
using System.Reflection;
|
||
|
using System.Reflection.Emit;
|
||
|
|
||
|
namespace ChocolArm64.Translation
|
||
|
{
|
||
|
struct ILOpCodeLoadField : IILEmit
|
||
|
{
|
||
|
public FieldInfo Info { get; private set; }
|
||
|
|
||
|
public ILOpCodeLoadField(FieldInfo info)
|
||
|
{
|
||
|
Info = info;
|
||
|
}
|
||
|
|
||
|
public void Emit(ILMethodBuilder context)
|
||
|
{
|
||
|
context.Generator.Emit(OpCodes.Ldfld, Info);
|
||
|
}
|
||
|
}
|
||
|
}
|