Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [12:56:57 ERROR SpriteMaster] [ApplyPatch] Exception Patching Method SpriteMaster.Harmonize.Patches.PTexture2D.PlatformSetData<Fixed16> (PTexture2D::OnPlatformSetDataPost)
- Exception: InvalidProgramException : Common Language Runtime detected an invalid program.
- at System.Runtime.CompilerServices.RuntimeHelpers._PrepareMethod(IRuntimeMethodInfo method, IntPtr* pInstantiation, Int32 cInstantiation)
- at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform.PrepareMethod(MethodBase method, RuntimeMethodHandle handle)
- at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform.<>c__DisplayClass24_0.<Pin>b__0(MethodBase m)
- at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
- at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform.Pin(MethodBase method)
- at MonoMod.RuntimeDetour.DetourHelper.Pin[T](T method)
- at HarmonyLib.MethodPatcher.CreateReplacement(Dictionary`2& finalInstructions)
- at HarmonyLib.PatchFunctions.UpdateWrapper(MethodBase original, PatchInfo patchInfo)
- at HarmonyLib.PatchProcessor.Patch()
- at SpriteMaster.Harmonize.Harmonize.Patch(Harmony instance, Type type, Type genericType, String name, MethodInfo pre, MethodInfo post, MethodInfo finalizer, MethodInfo trans, MethodInfo reverse, Int32 priority, Boolean instanceMethod) in D:\Stardew\SpriteMaster\SpriteMaster\Harmonize\Harmonize.cs:line 470
- at SpriteMaster.Harmonize.Harmonize.ApplyPatch(Harmony this, Type type, MethodInfo method, HarmonizeAttribute attribute) in D:\Stardew\SpriteMaster\SpriteMaster\Harmonize\Harmonize.cs:line 130
- [12:56:57 WARN SpriteMaster] [ApplyPatch] There were exceptions patching Method SpriteMaster.Harmonize.Patches.PTexture2D.PlatformSetData (PTexture2D::OnPlatformSetDataPost)
- ---
- ### Patch: System.Void Microsoft.Xna.Framework.Graphics.Texture2D::PlatformSetData(System.Int32 level, SpriteMaster.Types.Fixed.Fixed16[] data, System.Int32 startIndex, System.Int32 elementCount)
- ### Replacement: static System.Void Microsoft.Xna.Framework.Graphics.Texture2D::Microsoft.Xna.Framework.Graphics.Texture2D.PlatformSetData_PatchedBy<DigitalCarbide.SpriteMaster>(Microsoft.Xna.Framework.Graphics.Texture2D this, System.Int32 level, SpriteMaster.Types.Fixed.Fixed16[] data, System.Int32 startIndex, System.Int32 elementCount)
- IL_0000: Local var 0: Microsoft.Xna.Framework.Graphics.Texture2D/<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>
- IL_0000: Local var 1: System.Boolean
- IL_0000: ldc.i4 0
- IL_0005: stloc 1 (System.Boolean)
- IL_0009: ldc.i4.1
- IL_000A: stloc 1 (System.Boolean)
- IL_000E: ldloc 1 (System.Boolean)
- IL_0012: brfalse => Label1
- IL_0017: ldarg.0
- IL_0018: ldarg 1
- IL_001C: ldarg 2
- IL_0020: ldarg 3
- IL_0024: ldarg 4
- IL_0028: call static System.Boolean SpriteMaster.Harmonize.Patches.PTexture2D::OnPlatformSetDataPre(Microsoft.Xna.Framework.Graphics.Texture2D __instance, System.Int32 level, SpriteMaster.Types.Fixed.Fixed16[] data, System.Int32 startIndex, System.Int32 elementCount)
- IL_002D: stloc 1 (System.Boolean)
- IL_0031: Label1
- IL_0031: nop
- IL_0032: ldloc 1 (System.Boolean)
- IL_0036: brfalse => Label0
- IL_003B: // start original
- IL_003B: newobj System.Void Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::.ctor()
- IL_0040: stloc.0
- IL_0041: ldloc.0
- IL_0042: ldarg.2
- IL_0043: stfld SpriteMaster.Types.Fixed.Fixed16[] Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::data
- IL_0048: ldloc.0
- IL_0049: ldarg.3
- IL_004A: stfld System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::startIndex
- IL_004F: ldloc.0
- IL_0050: ldarg.0
- IL_0051: stfld Microsoft.Xna.Framework.Graphics.Texture2D Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::<>4__this
- IL_0056: ldloc.0
- IL_0057: ldarg.1
- IL_0058: stfld System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::level
- IL_005D: ldloc.0
- IL_005E: ldarg.s 4
- IL_0060: stfld System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::elementCount
- IL_0065: ldarg.0
- IL_0066: call virtual System.Int32 Microsoft.Xna.Framework.Graphics.Texture2D::get_Width()
- IL_006B: ldarg.0
- IL_006C: call virtual System.Int32 Microsoft.Xna.Framework.Graphics.Texture2D::get_Height()
- IL_0071: ldloc.0
- IL_0072: ldfld System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::level
- IL_0077: ldloc.0
- IL_0078: ldflda System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::w
- IL_007D: ldloc.0
- IL_007E: ldflda System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::h
- IL_0083: call static System.Void Microsoft.Xna.Framework.Graphics.Texture::GetSizeForLevel(System.Int32 width, System.Int32 height, System.Int32 level, System.Int32& w, System.Int32& h)
- IL_0088: ldloc.0
- IL_0089: ldftn System.Void Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::<PlatformSetData>b__0()
- IL_008F: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method)
- IL_0094: call static System.Void Microsoft.Xna.Framework.Threading::BlockOnUIThread(System.Action action)
- IL_0099: // end original
- IL_0099: Label0
- IL_0099: ret
- DONE
- ---
- ### Patch: System.Void Microsoft.Xna.Framework.Graphics.Texture2D::PlatformSetData(System.Int32 level, SpriteMaster.Types.Fixed.Fixed16[] data, System.Int32 startIndex, System.Int32 elementCount)
- ### Replacement: static System.Void Microsoft.Xna.Framework.Graphics.Texture2D::Microsoft.Xna.Framework.Graphics.Texture2D.PlatformSetData_PatchedBy<DigitalCarbide.SpriteMaster>(Microsoft.Xna.Framework.Graphics.Texture2D this, System.Int32 level, SpriteMaster.Types.Fixed.Fixed16[] data, System.Int32 startIndex, System.Int32 elementCount)
- IL_0000: Local var 0: Microsoft.Xna.Framework.Graphics.Texture2D/<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>
- IL_0000: Local var 1: System.Boolean
- IL_0000: ldc.i4 0
- IL_0005: stloc 1 (System.Boolean)
- IL_0009: ldc.i4.1
- IL_000A: stloc 1 (System.Boolean)
- IL_000E: ldloc 1 (System.Boolean)
- IL_0012: brfalse => Label1
- IL_0017: ldarg.0
- IL_0018: ldarg 1
- IL_001C: ldarg 2
- IL_0020: ldarg 3
- IL_0024: ldarg 4
- IL_0028: call static System.Boolean SpriteMaster.Harmonize.Patches.PTexture2D::OnPlatformSetDataPre(Microsoft.Xna.Framework.Graphics.Texture2D __instance, System.Int32 level, SpriteMaster.Harmonize.Patches.T[] data, System.Int32 startIndex, System.Int32 elementCount)
- IL_002D: stloc 1 (System.Boolean)
- IL_0031: Label1
- IL_0031: nop
- IL_0032: ldloc 1 (System.Boolean)
- IL_0036: brfalse => Label0
- IL_003B: // start original
- IL_003B: newobj System.Void Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::.ctor()
- IL_0040: stloc.0
- IL_0041: ldloc.0
- IL_0042: ldarg.2
- IL_0043: stfld SpriteMaster.Types.Fixed.Fixed16[] Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::data
- IL_0048: ldloc.0
- IL_0049: ldarg.3
- IL_004A: stfld System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::startIndex
- IL_004F: ldloc.0
- IL_0050: ldarg.0
- IL_0051: stfld Microsoft.Xna.Framework.Graphics.Texture2D Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::<>4__this
- IL_0056: ldloc.0
- IL_0057: ldarg.1
- IL_0058: stfld System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::level
- IL_005D: ldloc.0
- IL_005E: ldarg.s 4
- IL_0060: stfld System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::elementCount
- IL_0065: ldarg.0
- IL_0066: call virtual System.Int32 Microsoft.Xna.Framework.Graphics.Texture2D::get_Width()
- IL_006B: ldarg.0
- IL_006C: call virtual System.Int32 Microsoft.Xna.Framework.Graphics.Texture2D::get_Height()
- IL_0071: ldloc.0
- IL_0072: ldfld System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::level
- IL_0077: ldloc.0
- IL_0078: ldflda System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::w
- IL_007D: ldloc.0
- IL_007E: ldflda System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::h
- IL_0083: call static System.Void Microsoft.Xna.Framework.Graphics.Texture::GetSizeForLevel(System.Int32 width, System.Int32 height, System.Int32 level, System.Int32& w, System.Int32& h)
- IL_0088: ldloc.0
- IL_0089: ldftn System.Void Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::<PlatformSetData>b__0()
- IL_008F: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method)
- IL_0094: call static System.Void Microsoft.Xna.Framework.Threading::BlockOnUIThread(System.Action action)
- IL_0099: // end original
- IL_0099: Label0
- IL_0099: ldarg.0
- IL_009A: ldarg 1
- IL_009E: ldarg 2
- IL_00A2: ldarg 3
- IL_00A6: ldarg 4
- IL_00AA: call static System.Void SpriteMaster.Harmonize.Patches.PTexture2D::OnPlatformSetDataPost(Microsoft.Xna.Framework.Graphics.Texture2D __instance, System.Int32 level, SpriteMaster.Types.Fixed.Fixed16[] data, System.Int32 startIndex, System.Int32 elementCount)
- IL_00AF: ret
- DONE
- ---
Advertisement
Add Comment
Please, Sign In to add comment