Files
se-launcher/CringeLauncher/Patches/TypeTableRegisterPatch.cs
zznty aa979e9519
All checks were successful
Build / Compute Version (push) Successful in 4s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 2m47s
Build / Build Nuget package (CringePlugins) (push) Successful in 5m31s
Build / Build Nuget package (NuGet) (push) Successful in 6m2s
Build / Build Nuget package (SharedCringe) (push) Successful in 7m25s
Build / Build Launcher (push) Successful in 9m11s
feature: first
2024-10-28 05:21:11 +07:00

14 lines
361 B
C#

using HarmonyLib;
using VRage.Network;
namespace CringeLauncher.Patches;
[HarmonyPatch(typeof(MyTypeTable), "IsSerializableClass")]
public static class TypeTableRegisterPatch
{
private static void Postfix(Type type, ref bool __result)
{
if (type == typeof(Delegate) || type == typeof(MulticastDelegate))
__result = true;
}
}