mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-12 02:01:06 +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);
|
||
|
}
|
||
|
}
|
||
|
}
|