Skip to content

Commit

Permalink
Merge pull request #850 from slxdy/update-oldmono-patches
Browse files Browse the repository at this point in the history
Update missing deps for NetStandardPatches
  • Loading branch information
HerpDerpinstine authored Feb 3, 2025
2 parents b5a1071 + bbb2f9a commit 0a911e1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
Binary file not shown.
Binary file modified BaseLibs/NetStandardPatches/System.Drawing.dll
Binary file not shown.
Binary file added BaseLibs/NetStandardPatches/System.Xml.dll
Binary file not shown.
5 changes: 5 additions & 0 deletions MelonLoader/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
12 changes: 3 additions & 9 deletions MelonLoader/Fixes/ServerCertificateValidation.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -55,10 +53,6 @@ private static bool CertificateValidation(object sender, X509Certificate certifi
}
return true;
}
#else
internal static void Install()
{
}
#endif
}
}
}
#endif

0 comments on commit 0a911e1

Please sign in to comment.