diff --git a/AmongUs.props b/AmongUs.props index b306637..2ad14d0 100644 --- a/AmongUs.props +++ b/AmongUs.props @@ -1,8 +1,8 @@ Steam - 2021.11.9 - 2021.11.9 + 2021.12.14 + 2021.12.14 diff --git a/Reactor.Debugger/packages.lock.json b/Reactor.Debugger/packages.lock.json index bbe5af1..4b65513 100644 --- a/Reactor.Debugger/packages.lock.json +++ b/Reactor.Debugger/packages.lock.json @@ -4,9 +4,9 @@ ".NETStandard,Version=v2.1": { "AmongUs.GameLibs.Steam": { "type": "Direct", - "requested": "[2021.11.9, )", - "resolved": "2021.11.9", - "contentHash": "mqaIx7oPavuwMTRZDMmBrLOAWNG6s1tCOvpysnNPZT58b3epU+WMJKBruw9fUCf53t333d71xVUov6PRcwnSZQ==" + "requested": "[2021.12.14, )", + "resolved": "2021.12.14", + "contentHash": "LXybBZOTl/9T0nUXzSxH3v4yir4yc1fP4+ZcsX83l12lzcvomg7kozaFt8p37+GzYIgYcIglUsyxg7VqZC1c9w==" }, "BepInEx.AutoPlugin": { "type": "Direct", diff --git a/Reactor.Example/packages.lock.json b/Reactor.Example/packages.lock.json index bbe5af1..4b65513 100644 --- a/Reactor.Example/packages.lock.json +++ b/Reactor.Example/packages.lock.json @@ -4,9 +4,9 @@ ".NETStandard,Version=v2.1": { "AmongUs.GameLibs.Steam": { "type": "Direct", - "requested": "[2021.11.9, )", - "resolved": "2021.11.9", - "contentHash": "mqaIx7oPavuwMTRZDMmBrLOAWNG6s1tCOvpysnNPZT58b3epU+WMJKBruw9fUCf53t333d71xVUov6PRcwnSZQ==" + "requested": "[2021.12.14, )", + "resolved": "2021.12.14", + "contentHash": "LXybBZOTl/9T0nUXzSxH3v4yir4yc1fP4+ZcsX83l12lzcvomg7kozaFt8p37+GzYIgYcIglUsyxg7VqZC1c9w==" }, "BepInEx.AutoPlugin": { "type": "Direct", diff --git a/Reactor/Extensions/Dispatcher.cs b/Reactor/Extensions/Dispatcher.cs index b3db74e..c36134e 100644 --- a/Reactor/Extensions/Dispatcher.cs +++ b/Reactor/Extensions/Dispatcher.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using UnhollowerBaseLib.Attributes; using UnityEngine; namespace Reactor.Extensions; @@ -31,6 +32,7 @@ public class Dispatcher : MonoBehaviour } } + [HideFromIl2Cpp] public void Enqueue(Action action) { lock (_queue) diff --git a/Reactor/Patches/ServerInfoFixes.cs b/Reactor/Patches/ServerInfoFixes.cs index ccd946a..3b1c073 100644 --- a/Reactor/Patches/ServerInfoFixes.cs +++ b/Reactor/Patches/ServerInfoFixes.cs @@ -30,7 +30,7 @@ namespace Reactor.Patches var servers = Dns.GetHostAddresses(__instance.Fqdn) .Distinct() .Where(ipAddress => ipAddress.AddressFamily == AddressFamily.InterNetwork) - .Select(ipAddress => new ServerInfo($"{__instance.Name}-{i++}", ipAddress.ToString(), __instance.Port)) + .Select(ipAddress => new ServerInfo($"{__instance.Name}-{i++}", ipAddress.ToString(), __instance.Port, __instance.UseDtls)) .ToArray(); __instance.cachedServers = servers; @@ -41,7 +41,7 @@ namespace Reactor.Patches Logger.Info($"Failed to populate {__instance.Name}: {e}"); __instance.cachedServers = new[] { - new ServerInfo(__instance.Name ?? string.Empty, __instance.DefaultIp, __instance.Port), + new ServerInfo(__instance.Name ?? string.Empty, __instance.DefaultIp, __instance.Port, __instance.UseDtls), }; } diff --git a/Reactor/packages.lock.json b/Reactor/packages.lock.json index 5414da6..e92d533 100644 --- a/Reactor/packages.lock.json +++ b/Reactor/packages.lock.json @@ -4,9 +4,9 @@ ".NETStandard,Version=v2.1": { "AmongUs.GameLibs.Steam": { "type": "Direct", - "requested": "[2021.11.9, )", - "resolved": "2021.11.9", - "contentHash": "mqaIx7oPavuwMTRZDMmBrLOAWNG6s1tCOvpysnNPZT58b3epU+WMJKBruw9fUCf53t333d71xVUov6PRcwnSZQ==" + "requested": "[2021.12.14, )", + "resolved": "2021.12.14", + "contentHash": "LXybBZOTl/9T0nUXzSxH3v4yir4yc1fP4+ZcsX83l12lzcvomg7kozaFt8p37+GzYIgYcIglUsyxg7VqZC1c9w==" }, "BepInEx.AutoPlugin": { "type": "Direct",