This repository has been archived by the owner on Feb 19, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
231ae9e
commit c660175
Showing
77 changed files
with
704 additions
and
1,274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
using HarmonyLib; | ||
using Hazel.Udp; | ||
using Reactor; | ||
|
||
namespace TownOfUs | ||
{ | ||
public static class DirtyPatches | ||
{ | ||
public static void Initialize(Harmony harmony) | ||
{ | ||
try | ||
{ | ||
harmony.Unpatch( | ||
AccessTools.Method(typeof(UdpConnection), nameof(UdpConnection.HandleSend)), | ||
HarmonyPatchType.Prefix, | ||
ReactorPlugin.Id | ||
); | ||
} | ||
catch (Exception e) | ||
{ | ||
Logger<TownOfUs>.Instance.LogError($"Exception unpatching Reactor's UdpConnection.HandleSend Prefix: {e.Message}, Stack: {e.StackTrace}"); | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.