Skip to content

Commit

Permalink
Revert "Start working on http handshake support"
Browse files Browse the repository at this point in the history
This reverts commit 3579ecb.
  • Loading branch information
js6pak committed Aug 23, 2022
1 parent 9893fc9 commit a6152f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 76 deletions.
4 changes: 1 addition & 3 deletions Reactor/Networking/ModList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static Mod GetByNetId(uint netId)
return _mapByNetId![netId];
}

internal static ISet<Mod> Update()
internal static void Update()
{
var i = (uint) 0;

Expand All @@ -37,8 +37,6 @@ internal static ISet<Mod> Update()

_mapById = Current.ToDictionary(mod => mod.Id, mod => mod);
_mapByNetId = Current.ToDictionary(mod => mod.NetId, mod => mod);

return Current;
}
}
}
4 changes: 2 additions & 2 deletions Reactor/Networking/Patches/ClientPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,15 @@ public static void Prefix(ref bool useDtlsLayout)

public static void Postfix(ref Il2CppStructArray<byte> __result)
{
var mods = ModList.Update();
ModList.Update();

var handshake = new MessageWriter(1000);

handshake.Write(__result);

ModdedHandshakeC2S.Serialize(
handshake,
mods.Count
ModList.Current!.Count
);

__result = handshake.ToByteArray(true);
Expand Down
71 changes: 0 additions & 71 deletions Reactor/Networking/Patches/HttpPatches.cs

This file was deleted.

0 comments on commit a6152f5

Please sign in to comment.