mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
evil patch
This commit is contained in:
parent
98c86fa63c
commit
511ffda580
@ -3,6 +3,7 @@
|
||||
using HarmonyLib;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Profiling;
|
||||
|
||||
namespace NewHorizons.Patches;
|
||||
@ -28,9 +29,9 @@ public static class ProfilerPatch
|
||||
if (!(
|
||||
method.Name.StartsWith("Make") ||
|
||||
method.Name.StartsWith("Init") ||
|
||||
method.Name.StartsWith("Find") ||
|
||||
method.Name == "SetUpStreaming" ||
|
||||
method.Name == "OnSceneLoaded"
|
||||
method.Name == "OnSceneLoaded" ||
|
||||
method.DeclaringType.Name.EndsWith("Utilities")
|
||||
)) continue;
|
||||
|
||||
if (method.ContainsGenericParameters) continue;
|
||||
@ -60,4 +61,13 @@ public static class ProfilerPatch
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPatch]
|
||||
public static class EvilPatch
|
||||
{
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(StackTraceUtility), "ExtractStackTrace")]
|
||||
[HarmonyPatch(typeof(Application), "CallLogCallback")]
|
||||
private static bool DisableShaderLogSpam() => false;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user