diff --git a/ShowMeTheStats.csproj b/ShowMeTheStats.csproj index ad16656..3e391df 100644 --- a/ShowMeTheStats.csproj +++ b/ShowMeTheStats.csproj @@ -1,7 +1,7 @@  - net472 + net471 Wara-ModdingStatsHelper @@ -10,11 +10,11 @@ - - dependencies\Aki.Common.dll + + dependencies\spt-common.dll - - dependencies\Aki.Reflection.dll + + dependencies\spt-reflection.dll dependencies\Assembly-CSharp.dll diff --git a/ShowMeTheStatsPatches.cs b/ShowMeTheStatsPatches.cs index 3bc5a72..ac27ec1 100644 --- a/ShowMeTheStatsPatches.cs +++ b/ShowMeTheStatsPatches.cs @@ -1,4 +1,4 @@ -using Aki.Reflection.Patching; +using SPT.Reflection.Patching; using EFT.InventoryLogic; using System.Reflection; using EFT.UI; @@ -9,6 +9,7 @@ using System; using System.Linq; using EFT.UI.WeaponModding; +using UnityEngine; namespace ShowMeTheStats { @@ -17,7 +18,7 @@ public class ItemShowTooltipPatch : ModulePatch // we set the item we are hovering in the globals protected override MethodBase GetTargetMethod() { - return typeof(GridItemView).GetMethod("ShowTooltip", BindingFlags.Instance | BindingFlags.NonPublic); + return typeof(GridItemView).GetMethod("ShowTooltip", BindingFlags.Instance | BindingFlags.Public); } [PatchPrefix] @@ -37,7 +38,7 @@ public class ShowTooltipPatch : ModulePatch protected override MethodBase GetTargetMethod() { - return typeof(SimpleTooltip).GetMethod("Show", BindingFlags.Instance | BindingFlags.Public); + return typeof(SimpleTooltip).GetMethod("Show", BindingFlags.Instance | BindingFlags.Public, null, new Type[] { typeof(string), typeof(Vector2), typeof(float), typeof(float), typeof(bool) }, null); } [PatchPrefix] @@ -205,7 +206,7 @@ public class WeaponUpdatePatch : ModulePatch { protected override MethodBase GetTargetMethod() { - return typeof(EditBuildScreen).GetMethod("WeaponUpdate", BindingFlags.Instance | BindingFlags.NonPublic); + return typeof(EditBuildScreen).GetMethod("WeaponUpdate", BindingFlags.Instance | BindingFlags.Public); } [PatchPrefix] diff --git a/dependencies/Aki.Common.dll b/dependencies/Aki.Common.dll deleted file mode 100644 index 0da91e8..0000000 Binary files a/dependencies/Aki.Common.dll and /dev/null differ diff --git a/dependencies/Aki.Reflection.dll b/dependencies/Aki.Reflection.dll deleted file mode 100644 index 8d587b2..0000000 Binary files a/dependencies/Aki.Reflection.dll and /dev/null differ diff --git a/dependencies/Assembly-CSharp.dll b/dependencies/Assembly-CSharp.dll index 9650cea..c1aa8d1 100644 Binary files a/dependencies/Assembly-CSharp.dll and b/dependencies/Assembly-CSharp.dll differ diff --git a/dependencies/BepInEx.dll b/dependencies/BepInEx.dll index 2fb6c0d..826b479 100644 Binary files a/dependencies/BepInEx.dll and b/dependencies/BepInEx.dll differ diff --git a/dependencies/Comfort.dll b/dependencies/Comfort.dll index 3ca177c..5eeb3c6 100644 Binary files a/dependencies/Comfort.dll and b/dependencies/Comfort.dll differ diff --git a/dependencies/Newtonsoft.Json.dll b/dependencies/Newtonsoft.Json.dll index fe61d98..58e28ed 100644 Binary files a/dependencies/Newtonsoft.Json.dll and b/dependencies/Newtonsoft.Json.dll differ diff --git a/dependencies/Sirenix.Serialization.dll b/dependencies/Sirenix.Serialization.dll index e9b43d3..8ccd616 100644 Binary files a/dependencies/Sirenix.Serialization.dll and b/dependencies/Sirenix.Serialization.dll differ diff --git a/dependencies/Unity.TextMeshPro.dll b/dependencies/Unity.TextMeshPro.dll index e1172bc..edcfe81 100644 Binary files a/dependencies/Unity.TextMeshPro.dll and b/dependencies/Unity.TextMeshPro.dll differ diff --git a/dependencies/UnityEngine.CoreModule.dll b/dependencies/UnityEngine.CoreModule.dll index ecb5a04..d8a5448 100644 Binary files a/dependencies/UnityEngine.CoreModule.dll and b/dependencies/UnityEngine.CoreModule.dll differ diff --git a/dependencies/spt-common.dll b/dependencies/spt-common.dll new file mode 100644 index 0000000..4b74443 Binary files /dev/null and b/dependencies/spt-common.dll differ diff --git a/dependencies/spt-reflection.dll b/dependencies/spt-reflection.dll new file mode 100644 index 0000000..1215a39 Binary files /dev/null and b/dependencies/spt-reflection.dll differ