
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
19 lines
842 B
C#
19 lines
842 B
C#
using HarmonyLib;
|
|
using Sandbox.Game.World;
|
|
|
|
namespace CringeLauncher.Patches;
|
|
|
|
[HarmonyPatch(typeof(MyScriptManager), nameof(MyScriptManager.Init))]
|
|
public static class DarkTardMissingNamespacePatch
|
|
{
|
|
private static void Prefix(Dictionary<string, string> ___m_compatibilityChanges)
|
|
{
|
|
___m_compatibilityChanges["using System.Runtime.Remoting.Metadata.W3cXsd2001;"] = "";
|
|
___m_compatibilityChanges["using System.IO.Ports;"] = "";
|
|
___m_compatibilityChanges["using System.Runtime.Remoting;"] = "";
|
|
___m_compatibilityChanges["using System.Runtime.Remoting.Messaging;"] = "";
|
|
___m_compatibilityChanges["using System.Numerics;"] = "";
|
|
___m_compatibilityChanges["using System.Runtime.Remoting.Lifetime;"] = "";
|
|
___m_compatibilityChanges["using System.Net.Configuration;"] = "";
|
|
}
|
|
} |