2021.4.14s

This commit is contained in:
js6pak committed 2021-04-27 13:42:00 +02:00
1 parent c63e630d04
commit 7bae228f3b
4 files changed
+4 -21

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup Condition="'$(GamePlatform)' == 'Steam'">
<GameVersion>2021.4.12s</GameVersion>
<GameVersion>2021.4.14s</GameVersion>
<DefineConstants>$(DefineConstants);STEAM</DefineConstants>
</PropertyGroup>
+1 -9
View File
@@ -1,8 +1,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using HarmonyLib;
using Reactor.Extensions;
using UnhollowerBaseLib;
namespace Reactor
@@ -53,15 +51,9 @@ namespace Reactor
}
}
// [HarmonyPatch(typeof(TranslationController), nameof(TranslationController.GetString), typeof(StringNames), typeof(string), typeof(Il2CppReferenceArray<Il2CppSystem.Object>))]
[HarmonyPatch]
[HarmonyPatch(typeof(TranslationController), nameof(TranslationController.GetStringWithDefault))]
private static class GetStringOrDefaultPatch
{
public static IEnumerable<MethodBase> TargetMethods()
{
return typeof(TranslationController).GetMethods(typeof(string), typeof(StringNames), typeof(string), typeof(Il2CppReferenceArray<Il2CppSystem.Object>));
}
public static bool Prefix([HarmonyArgument(0)] StringNames stringId, [HarmonyArgument(2)] Il2CppReferenceArray<Il2CppSystem.Object> parts, ref string __result)
{
var customStringName = (CustomStringName) stringId;
+1 -10
View File
@@ -1,24 +1,15 @@
using System.Collections.Generic;
using System.Reflection;
using HarmonyLib;
using Hazel;
using InnerNet;
using Reactor.Extensions;
using UnityEngine;
namespace Reactor.Networking.Patches
{
internal static class ServerPatches
{
// [HarmonyPatch(typeof(InnerNetServer), nameof(InnerNetServer.OnServerConnect))]
[HarmonyPatch]
[HarmonyPatch(typeof(InnerNetServer), nameof(InnerNetServer.OnServerConnect))]
public static class HandshakeResponsePatch
{
public static IEnumerable<MethodBase> TargetMethods()
{
return typeof(InnerNetServer).GetMethods(typeof(void), typeof(NewConnectionEventArgs));
}
public static void Postfix([HarmonyArgument(0)] NewConnectionEventArgs evt)
{
var writer = MessageWriter.Get(SendOption.Reliable);
+1 -1
View File
@@ -38,7 +38,7 @@ public sealed class SetupAmongUsTask : AsyncFrostingTask<BuildContext>
{
public const uint AppId = 945360;
public const uint DepotId = 945361;
public const ulong ManifestId = 2725166875026424465; // 2021.4.12s
public const ulong ManifestId = 1328515537648622656; // 2021.4.14s
public override async Task RunAsync(BuildContext context)
{