Skip to content

Commit

Permalink
0.13.0.2.21734 Update
Browse files Browse the repository at this point in the history
And also added to maybe go back to old http
  • Loading branch information
SlejmUr committed Feb 10, 2023
1 parent 7cb4b15 commit 73c8cd2
Show file tree
Hide file tree
Showing 14 changed files with 44 additions and 1 deletion.
42 changes: 42 additions & 0 deletions Patches/Web/TransportPrefixPatch.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
using MTGA.Utilities.Core;
using System;
using System.Reflection;

namespace MTGA.Patches.Web
{
// This should work to https to http -slejm
public class TransportPrefixCtorPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return typeof(TransportPrefix).GetConstructor(new Type[] { } );
}

[PatchPostfix]
private static bool PatchPostfix()
{
TransportPrefix.TransportPrefixes.Clear();
TransportPrefix.TransportPrefixes.Add(ETransportProtocolType.HTTPS, "http://");
TransportPrefix.TransportPrefixes.Add(ETransportProtocolType.WSS, "ws://");

Logger.LogInfo("TransportPrefix Ctor Is Done!");
return false;
}
}

public class TransportPrefixPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return typeof(TransportPrefix).GetMethod("CreateFromLegacyParams", BindingFlags.Static | BindingFlags.Public);
}

[PatchPostfix]
private static bool PatchPostfix(Request legacyParams)
{
legacyParams.Url = legacyParams.Url.Replace("http://","https://"); // We always replace it to nothing if its runned successfully
Logger.LogInfo("TransportPrefix Is Done!");
return true;
}
}
}
3 changes: 2 additions & 1 deletion Patches/Web/UnityWebRequestPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
using UnityEngine.Networking;

namespace MTGA
{
{
// Commenting here, because this dont need if want to switch to http (Need to check)
public class UnityWebRequestPatch : ModulePatch
{
//private static CertificateHandler _certificateHandler = new FakeCertificateHandler();
Expand Down
Binary file modified _TarkovReferences/Assembly-CSharp.dll
Binary file not shown.
Binary file modified _TarkovReferences/Comfort.Unity.dll
Binary file not shown.
Binary file modified _TarkovReferences/Comfort.dll
Binary file not shown.
Binary file modified _TarkovReferences/DissonanceVoip.dll
Binary file not shown.
Binary file modified _TarkovReferences/FilesChecker.dll
Binary file not shown.
Binary file modified _TarkovReferences/Sirenix.Serialization.Config.dll
Binary file not shown.
Binary file modified _TarkovReferences/Sirenix.Serialization.dll
Binary file not shown.
Binary file modified _TarkovReferences/Sirenix.Utilities.dll
Binary file not shown.
Binary file modified _TarkovReferences/Unity.ScriptableBuildPipeline.dll
Binary file not shown.
Binary file modified _TarkovReferences/UnityEngine.UI.dll
Binary file not shown.
Binary file modified _TarkovReferences/bsg.componentace.compression.libs.zlib.dll
Binary file not shown.
Binary file modified _TarkovReferences/com.unity.multiplayer-hlapi.Runtime.dll
Binary file not shown.

0 comments on commit 73c8cd2

Please sign in to comment.