Browse Source

Fixed null `thisarg` being passed around in config generator

pull/46/head
Anairkoen Schno 4 years ago
parent
commit
cac828efef
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      IPA.Loader/Config/Stores/GeneratedStoreImpl/MakeCreator.cs
  2. +1
    -1
      IPA.Loader/Config/Stores/GeneratedStoreImpl/Serialization.cs

+ 1
- 1
IPA.Loader/Config/Stores/GeneratedStoreImpl/MakeCreator.cs View File

@ -368,7 +368,7 @@ namespace IPA.Config.Stores
foreach (var member in structure) foreach (var member in structure)
{ {
EmitSerializeMember(il, member, GetLocal);
EmitSerializeMember(il, member, GetLocal, GetMethodThis);
il.Emit(OpCodes.Stloc, valLocal); il.Emit(OpCodes.Stloc, valLocal);
il.Emit(OpCodes.Ldloc, mapLocal); il.Emit(OpCodes.Ldloc, mapLocal);
il.Emit(OpCodes.Ldstr, member.Name); il.Emit(OpCodes.Ldstr, member.Name);


+ 1
- 1
IPA.Loader/Config/Stores/GeneratedStoreImpl/Serialization.cs View File

@ -18,7 +18,7 @@ namespace IPA.Config.Stores
internal static partial class GeneratedStoreImpl internal static partial class GeneratedStoreImpl
{ {
// emit takes no args, leaves Value at top of stack // emit takes no args, leaves Value at top of stack
private static void EmitSerializeMember(ILGenerator il, SerializedMemberInfo member, GetLocal GetLocal, Action<ILGenerator> thisarg = null)
private static void EmitSerializeMember(ILGenerator il, SerializedMemberInfo member, GetLocal GetLocal, Action<ILGenerator> thisarg)
{ {
EmitLoad(il, member, thisarg); EmitLoad(il, member, thisarg);


Loading…
Cancel
Save