diff --git a/BaseLibs/NetStandardPatches/System.Configuration.dll b/BaseLibs/NetStandardPatches/System.Configuration.dll new file mode 100644 index 00000000..5da68edb Binary files /dev/null and b/BaseLibs/NetStandardPatches/System.Configuration.dll differ diff --git a/BaseLibs/NetStandardPatches/System.Drawing.dll b/BaseLibs/NetStandardPatches/System.Drawing.dll index 3cfaf18e..ac277653 100644 Binary files a/BaseLibs/NetStandardPatches/System.Drawing.dll and b/BaseLibs/NetStandardPatches/System.Drawing.dll differ diff --git a/BaseLibs/NetStandardPatches/System.Xml.dll b/BaseLibs/NetStandardPatches/System.Xml.dll new file mode 100644 index 00000000..c2f5fa77 Binary files /dev/null and b/BaseLibs/NetStandardPatches/System.Xml.dll differ diff --git a/MelonLoader/Core.cs b/MelonLoader/Core.cs index 0fadbf51..9a90f844 100644 --- a/MelonLoader/Core.cs +++ b/MelonLoader/Core.cs @@ -44,7 +44,12 @@ internal static int Initialize() Pastel.ConsoleExtensions.Disable(); Fixes.UnhandledException.Install(AppDomain.CurrentDomain); + +#if NET35 Fixes.ServerCertificateValidation.Install(); +#endif + + Assertions.LemonAssertMapping.Setup(); MelonUtils.Setup(AppDomain.CurrentDomain); diff --git a/MelonLoader/Fixes/ServerCertificateValidation.cs b/MelonLoader/Fixes/ServerCertificateValidation.cs index 2f3211c2..e77c7ce7 100644 --- a/MelonLoader/Fixes/ServerCertificateValidation.cs +++ b/MelonLoader/Fixes/ServerCertificateValidation.cs @@ -1,16 +1,14 @@ -#if !NET6_0 +#if NET35 using System; using System.Net; using System.Net.Security; using System.Reflection; using System.Security.Cryptography.X509Certificates; -#endif namespace MelonLoader.Fixes { internal static class ServerCertificateValidation { -#if !NET6_0 internal static void Install() { try @@ -55,10 +53,6 @@ private static bool CertificateValidation(object sender, X509Certificate certifi } return true; } -#else - internal static void Install() - { - } -#endif } -} \ No newline at end of file +} +#endif \ No newline at end of file