Ameisen

Untitled

May 13th, 2022
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.58 KB | None | 0 0
  1. [12:56:57 ERROR SpriteMaster] [ApplyPatch] Exception Patching Method SpriteMaster.Harmonize.Patches.PTexture2D.PlatformSetData<Fixed16> (PTexture2D::OnPlatformSetDataPost)
  2. Exception: InvalidProgramException : Common Language Runtime detected an invalid program.
  3. at System.Runtime.CompilerServices.RuntimeHelpers._PrepareMethod(IRuntimeMethodInfo method, IntPtr* pInstantiation, Int32 cInstantiation)
  4. at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform.PrepareMethod(MethodBase method, RuntimeMethodHandle handle)
  5. at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform.<>c__DisplayClass24_0.<Pin>b__0(MethodBase m)
  6. at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
  7. at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform.Pin(MethodBase method)
  8. at MonoMod.RuntimeDetour.DetourHelper.Pin[T](T method)
  9. at HarmonyLib.MethodPatcher.CreateReplacement(Dictionary`2& finalInstructions)
  10. at HarmonyLib.PatchFunctions.UpdateWrapper(MethodBase original, PatchInfo patchInfo)
  11. at HarmonyLib.PatchProcessor.Patch()
  12. 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
  13. at SpriteMaster.Harmonize.Harmonize.ApplyPatch(Harmony this, Type type, MethodInfo method, HarmonizeAttribute attribute) in D:\Stardew\SpriteMaster\SpriteMaster\Harmonize\Harmonize.cs:line 130
  14. [12:56:57 WARN SpriteMaster] [ApplyPatch] There were exceptions patching Method SpriteMaster.Harmonize.Patches.PTexture2D.PlatformSetData (PTexture2D::OnPlatformSetDataPost)
  15.  
  16. ---
  17.  
  18. ### Patch: System.Void Microsoft.Xna.Framework.Graphics.Texture2D::PlatformSetData(System.Int32 level, SpriteMaster.Types.Fixed.Fixed16[] data, System.Int32 startIndex, System.Int32 elementCount)
  19. ### 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)
  20. IL_0000: Local var 0: Microsoft.Xna.Framework.Graphics.Texture2D/<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>
  21. IL_0000: Local var 1: System.Boolean
  22. IL_0000: ldc.i4 0
  23. IL_0005: stloc 1 (System.Boolean)
  24. IL_0009: ldc.i4.1
  25. IL_000A: stloc 1 (System.Boolean)
  26. IL_000E: ldloc 1 (System.Boolean)
  27. IL_0012: brfalse => Label1
  28. IL_0017: ldarg.0
  29. IL_0018: ldarg 1
  30. IL_001C: ldarg 2
  31. IL_0020: ldarg 3
  32. IL_0024: ldarg 4
  33. 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)
  34. IL_002D: stloc 1 (System.Boolean)
  35. IL_0031: Label1
  36. IL_0031: nop
  37. IL_0032: ldloc 1 (System.Boolean)
  38. IL_0036: brfalse => Label0
  39. IL_003B: // start original
  40. IL_003B: newobj System.Void Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::.ctor()
  41. IL_0040: stloc.0
  42. IL_0041: ldloc.0
  43. IL_0042: ldarg.2
  44. IL_0043: stfld SpriteMaster.Types.Fixed.Fixed16[] Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::data
  45. IL_0048: ldloc.0
  46. IL_0049: ldarg.3
  47. IL_004A: stfld System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::startIndex
  48. IL_004F: ldloc.0
  49. IL_0050: ldarg.0
  50. IL_0051: stfld Microsoft.Xna.Framework.Graphics.Texture2D Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::<>4__this
  51. IL_0056: ldloc.0
  52. IL_0057: ldarg.1
  53. IL_0058: stfld System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::level
  54. IL_005D: ldloc.0
  55. IL_005E: ldarg.s 4
  56. IL_0060: stfld System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::elementCount
  57. IL_0065: ldarg.0
  58. IL_0066: call virtual System.Int32 Microsoft.Xna.Framework.Graphics.Texture2D::get_Width()
  59. IL_006B: ldarg.0
  60. IL_006C: call virtual System.Int32 Microsoft.Xna.Framework.Graphics.Texture2D::get_Height()
  61. IL_0071: ldloc.0
  62. IL_0072: ldfld System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::level
  63. IL_0077: ldloc.0
  64. IL_0078: ldflda System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::w
  65. IL_007D: ldloc.0
  66. IL_007E: ldflda System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::h
  67. 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)
  68. IL_0088: ldloc.0
  69. IL_0089: ldftn System.Void Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::<PlatformSetData>b__0()
  70. IL_008F: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method)
  71. IL_0094: call static System.Void Microsoft.Xna.Framework.Threading::BlockOnUIThread(System.Action action)
  72. IL_0099: // end original
  73. IL_0099: Label0
  74. IL_0099: ret
  75. DONE
  76.  
  77. ---
  78.  
  79. ### Patch: System.Void Microsoft.Xna.Framework.Graphics.Texture2D::PlatformSetData(System.Int32 level, SpriteMaster.Types.Fixed.Fixed16[] data, System.Int32 startIndex, System.Int32 elementCount)
  80. ### 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)
  81. IL_0000: Local var 0: Microsoft.Xna.Framework.Graphics.Texture2D/<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>
  82. IL_0000: Local var 1: System.Boolean
  83. IL_0000: ldc.i4 0
  84. IL_0005: stloc 1 (System.Boolean)
  85. IL_0009: ldc.i4.1
  86. IL_000A: stloc 1 (System.Boolean)
  87. IL_000E: ldloc 1 (System.Boolean)
  88. IL_0012: brfalse => Label1
  89. IL_0017: ldarg.0
  90. IL_0018: ldarg 1
  91. IL_001C: ldarg 2
  92. IL_0020: ldarg 3
  93. IL_0024: ldarg 4
  94. 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)
  95. IL_002D: stloc 1 (System.Boolean)
  96. IL_0031: Label1
  97. IL_0031: nop
  98. IL_0032: ldloc 1 (System.Boolean)
  99. IL_0036: brfalse => Label0
  100. IL_003B: // start original
  101. IL_003B: newobj System.Void Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::.ctor()
  102. IL_0040: stloc.0
  103. IL_0041: ldloc.0
  104. IL_0042: ldarg.2
  105. IL_0043: stfld SpriteMaster.Types.Fixed.Fixed16[] Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::data
  106. IL_0048: ldloc.0
  107. IL_0049: ldarg.3
  108. IL_004A: stfld System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::startIndex
  109. IL_004F: ldloc.0
  110. IL_0050: ldarg.0
  111. IL_0051: stfld Microsoft.Xna.Framework.Graphics.Texture2D Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::<>4__this
  112. IL_0056: ldloc.0
  113. IL_0057: ldarg.1
  114. IL_0058: stfld System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::level
  115. IL_005D: ldloc.0
  116. IL_005E: ldarg.s 4
  117. IL_0060: stfld System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::elementCount
  118. IL_0065: ldarg.0
  119. IL_0066: call virtual System.Int32 Microsoft.Xna.Framework.Graphics.Texture2D::get_Width()
  120. IL_006B: ldarg.0
  121. IL_006C: call virtual System.Int32 Microsoft.Xna.Framework.Graphics.Texture2D::get_Height()
  122. IL_0071: ldloc.0
  123. IL_0072: ldfld System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::level
  124. IL_0077: ldloc.0
  125. IL_0078: ldflda System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::w
  126. IL_007D: ldloc.0
  127. IL_007E: ldflda System.Int32 Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::h
  128. 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)
  129. IL_0088: ldloc.0
  130. IL_0089: ldftn System.Void Microsoft.Xna.Framework.Graphics.<>c__DisplayClass45_0`1<SpriteMaster.Types.Fixed.Fixed16>::<PlatformSetData>b__0()
  131. IL_008F: newobj System.Void System.Action::.ctor(System.Object object, System.IntPtr method)
  132. IL_0094: call static System.Void Microsoft.Xna.Framework.Threading::BlockOnUIThread(System.Action action)
  133. IL_0099: // end original
  134. IL_0099: Label0
  135. IL_0099: ldarg.0
  136. IL_009A: ldarg 1
  137. IL_009E: ldarg 2
  138. IL_00A2: ldarg 3
  139. IL_00A6: ldarg 4
  140. 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)
  141. IL_00AF: ret
  142. DONE
  143.  
  144. ---
Advertisement
Add Comment
Please, Sign In to add comment