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 HarmonyLib;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
using UnityEngine;
|
||||||
using UnityEngine.Profiling;
|
using UnityEngine.Profiling;
|
||||||
|
|
||||||
namespace NewHorizons.Patches;
|
namespace NewHorizons.Patches;
|
||||||
@ -28,9 +29,9 @@ public static class ProfilerPatch
|
|||||||
if (!(
|
if (!(
|
||||||
method.Name.StartsWith("Make") ||
|
method.Name.StartsWith("Make") ||
|
||||||
method.Name.StartsWith("Init") ||
|
method.Name.StartsWith("Init") ||
|
||||||
method.Name.StartsWith("Find") ||
|
|
||||||
method.Name == "SetUpStreaming" ||
|
method.Name == "SetUpStreaming" ||
|
||||||
method.Name == "OnSceneLoaded"
|
method.Name == "OnSceneLoaded" ||
|
||||||
|
method.DeclaringType.Name.EndsWith("Utilities")
|
||||||
)) continue;
|
)) continue;
|
||||||
|
|
||||||
if (method.ContainsGenericParameters) 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
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user