first commit

This commit is contained in:
2025-07-06 00:23:46 +02:00
commit 38f50c8819
1788 changed files with 112878 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using System;
using System.Reflection;
using UnityEngine;
namespace NitroxPatcher.Patches.Persistent;
/// <summary>
/// Makes sure that Coroutine aren't fully blocked once they encounter an Exception
/// </summary>
public sealed partial class UnityEngine_SetupCoroutine_Patch : NitroxPatch, IPersistentPatch
{
// UnityEngine DLLs aren't publicized so we can't access this class as done in other patches
public static readonly MethodInfo TARGET_METHOD = Assembly.GetAssembly(typeof(GameObject))
.GetType("UnityEngine.SetupCoroutine")
.GetMethod("InvokeMoveNext", BindingFlags.Public | BindingFlags.Static);
public static Exception Finalizer(Exception __exception)
{
if (__exception != null)
{
Log.Error(__exception);
}
return null;
}
}