Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
Updated to latest VRChat build.
Browse files Browse the repository at this point in the history
  • Loading branch information
RequiDev committed Dec 7, 2021
1 parent bba70cb commit f0b856b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion NetworkSanity/NetworkSanity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static class BuildInfo
public const string Name = "NetworkSanity";
public const string Author = "Requi";
public const string Company = null;
public const string Version = "1.1.2";
public const string Version = "1.1.3";
public const string DownloadLink = "https://github.com/RequiDev/NetworkSanity/";
}

Expand Down
6 changes: 3 additions & 3 deletions NetworkSanity/Sanitizers/FlatBufferSanitizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public FlatBufferSanitizer()
{
unsafe
{
var originalMethod = (Il2CppMethodInfo*)(IntPtr)UnhollowerUtils.GetIl2CppMethodInfoPointerFieldForGeneratedMethod(typeof(AvatarPlayableController).GetMethod(nameof(AvatarPlayableController.Method_Public_Virtual_Final_New_Void_ValueTypePublicSealedObInObVoIn711ObInByUnique_Int32_Single_0))).GetValue(null);
var originalMethod = (Il2CppMethodInfo*)(IntPtr)UnhollowerUtils.GetIl2CppMethodInfoPointerFieldForGeneratedMethod(typeof(AvatarPlayableController).GetMethod(nameof(AvatarPlayableController.Method_Public_Virtual_Final_New_Void_ValueTypePublicSealedObInOb71In1VoOb711Unique_Int32_Single_0))).GetValue(null);
var originalMethodPtr = *(IntPtr*)originalMethod;

MelonUtils.NativeHookAttach((IntPtr)(&originalMethodPtr), typeof(FlatBufferSanitizer).GetMethod(nameof(AvatarPlayableControllerDecodePatch), BindingFlags.Static | BindingFlags.NonPublic)!.MethodHandle.GetFunctionPointer());
Expand All @@ -50,7 +50,7 @@ public FlatBufferSanitizer()

unsafe
{
var originalMethod = (Il2CppMethodInfo*)(IntPtr)UnhollowerUtils.GetIl2CppMethodInfoPointerFieldForGeneratedMethod(typeof(SyncPhysics).GetMethod(nameof(SyncPhysics.Method_Public_Virtual_Final_New_Void_ValueTypePublicSealedObInObVoIn711ObInByUnique_Int32_Single_0))).GetValue(null);
var originalMethod = (Il2CppMethodInfo*)(IntPtr)UnhollowerUtils.GetIl2CppMethodInfoPointerFieldForGeneratedMethod(typeof(SyncPhysics).GetMethod(nameof(SyncPhysics.Method_Public_Virtual_Final_New_Void_ValueTypePublicSealedObInOb71In1VoOb711Unique_Int32_Single_0))).GetValue(null);
var originalMethodPtr = *(IntPtr*)originalMethod;

MelonUtils.NativeHookAttach((IntPtr)(&originalMethodPtr), typeof(FlatBufferSanitizer).GetMethod(nameof(SyncPhysicsDecodePatch), BindingFlags.Static | BindingFlags.NonPublic)!.MethodHandle.GetFunctionPointer());
Expand All @@ -64,7 +64,7 @@ public FlatBufferSanitizer()

unsafe
{
var originalMethod = (Il2CppMethodInfo*)(IntPtr)UnhollowerUtils.GetIl2CppMethodInfoPointerFieldForGeneratedMethod(typeof(PoseRecorder).GetMethod(nameof(PoseRecorder.Method_Public_Virtual_Final_New_Void_ValueTypePublicSealedObInObVoIn711ObInByUnique_Int32_Single_0))).GetValue(null);
var originalMethod = (Il2CppMethodInfo*)(IntPtr)UnhollowerUtils.GetIl2CppMethodInfoPointerFieldForGeneratedMethod(typeof(PoseRecorder).GetMethod(nameof(PoseRecorder.Method_Public_Virtual_Final_New_Void_ValueTypePublicSealedObInOb71In1VoOb711Unique_Int32_Single_0))).GetValue(null);
var originalMethodPtr = *(IntPtr*)originalMethod;

MelonUtils.NativeHookAttach((IntPtr)(&originalMethodPtr), typeof(FlatBufferSanitizer).GetMethod(nameof(PoseRecorderDecodePatch), BindingFlags.Static | BindingFlags.NonPublic)!.MethodHandle.GetFunctionPointer());
Expand Down

0 comments on commit f0b856b

Please sign in to comment.