-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deps Update, remove all remaining references to Oxide
- Loading branch information
1 parent
d1e1aa7
commit 9d1d210
Showing
119 changed files
with
87 additions
and
48 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
28 changes: 28 additions & 0 deletions
28
src/RustServerMetrics/Harmony/TimeWarning/Dispose_Patch.cs
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,28 @@ | ||
using Harmony; | ||
using System.Collections.Generic; | ||
using System.Reflection.Emit; | ||
|
||
namespace RustServerMetrics.Harmony.TimeWarning | ||
{ | ||
[HarmonyPatch(typeof(global::TimeWarning), nameof(global::TimeWarning.Dispose))] | ||
public static class Dispose_Patch | ||
{ | ||
[HarmonyTranspiler] | ||
public static IEnumerable<CodeInstruction> Transpile(IEnumerable<CodeInstruction> originalInstructions) | ||
{ | ||
var fieldInfo = typeof(SingletonComponent<MetricsLogger>) | ||
.GetField(nameof(SingletonComponent<MetricsLogger>.Instance), System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.Public); | ||
|
||
var methodInfo = typeof(MetricsLogger) | ||
.GetMethod(nameof(MetricsLogger.OnDisposeTimeWarning), System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic); | ||
|
||
return new CodeInstruction[] | ||
{ | ||
new CodeInstruction(OpCodes.Ldsfld, fieldInfo), | ||
new CodeInstruction(OpCodes.Ldarg_0), | ||
new CodeInstruction(OpCodes.Call, methodInfo), | ||
new CodeInstruction(OpCodes.Ret) | ||
}; | ||
} | ||
} | ||
} |
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,29 @@ | ||
using Harmony; | ||
using System.Collections.Generic; | ||
using System.Reflection.Emit; | ||
|
||
namespace RustServerMetrics.Harmony.TimeWarning | ||
{ | ||
[HarmonyPatch(typeof(global::TimeWarning), nameof(global::TimeWarning.New))] | ||
public static class New_Patch | ||
{ | ||
[HarmonyTranspiler] | ||
public static IEnumerable<CodeInstruction> Transpile(IEnumerable<CodeInstruction> originalInstructions) | ||
{ | ||
var fieldInfo = typeof(SingletonComponent<MetricsLogger>) | ||
.GetField(nameof(SingletonComponent<MetricsLogger>.Instance), System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.Public); | ||
|
||
var methodInfo = typeof(MetricsLogger) | ||
.GetMethod(nameof(MetricsLogger.OnNewTimeWarning), System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic); | ||
|
||
return new List<CodeInstruction> | ||
{ | ||
new CodeInstruction(OpCodes.Ldsfld, fieldInfo), | ||
new CodeInstruction(OpCodes.Ldarg_0), | ||
new CodeInstruction(OpCodes.Ldarg_1), | ||
new CodeInstruction(OpCodes.Call, methodInfo), | ||
new CodeInstruction(OpCodes.Ret) | ||
}; | ||
} | ||
} | ||
} |
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
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