mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
2021.3.5 fixes
This commit is contained in:
1 parent
62892456d8
commit
a2f707fe16
4 files changed
+30
-4
No files matched your search
@@ -1,6 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using HarmonyLib;
|
||||
using Reactor.Extensions;
|
||||
using UnhollowerBaseLib;
|
||||
|
||||
namespace Reactor
|
||||
@@ -50,5 +52,28 @@ namespace Reactor
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// [HarmonyPatch(typeof(TranslationController), nameof(TranslationController.GetString), typeof(StringNames), typeof(string), typeof(Il2CppReferenceArray<Il2CppSystem.Object>))]
|
||||
[HarmonyPatch]
|
||||
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;
|
||||
|
||||
if (customStringName != null)
|
||||
{
|
||||
__result = string.Format(customStringName.Value, parts);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,8 +5,8 @@ namespace Reactor.Extensions
|
||||
{
|
||||
public static class MessageExtensions
|
||||
{
|
||||
private const float MIN = -40f;
|
||||
private const float MAX = 40f;
|
||||
private const float MIN = -50f;
|
||||
private const float MAX = 50f;
|
||||
|
||||
private static float ReverseLerp(float t)
|
||||
{
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
<RunWorkingDirectory>$(MSBuildProjectDirectory)/..</RunWorkingDirectory>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Cake.Frosting" Version="1.0.0-rc0002" />
|
||||
<PackageReference Include="Cake.Frosting" Version="1.1.0" />
|
||||
<PackageReference Include="DepotDownloader.Library" Version="0.1.2" />
|
||||
<PackageReference Include="Reactor.OxygenFilter" Version="0.1.1" />
|
||||
<PackageReference Include="js6pak.Il2CppDumper" Version="6.4.20" />
|
||||
|
||||
+2
-1
@@ -38,6 +38,7 @@ public sealed class SetupAmongUsTask : AsyncFrostingTask<BuildContext>
|
||||
{
|
||||
public const uint AppId = 945360;
|
||||
public const uint DepotId = 945361;
|
||||
public const ulong ManifestId = 5200448423569257054; // 2021.3.5s
|
||||
|
||||
public override async Task RunAsync(BuildContext context)
|
||||
{
|
||||
@@ -50,7 +51,7 @@ public sealed class SetupAmongUsTask : AsyncFrostingTask<BuildContext>
|
||||
ContentDownloader.Config.InstallDirectory = context.AmongUsPath;
|
||||
|
||||
context.Information("Downloading the game from steam");
|
||||
await ContentDownloader.DownloadAppAsync(AppId, DepotId);
|
||||
await ContentDownloader.DownloadAppAsync(AppId, DepotId, ManifestId);
|
||||
ContentDownloader.ShutdownSteam3();
|
||||
|
||||
var bepinexZip = context.DownloadFile("https://github.com/NuclearPowered/BepInEx/releases/download/6.0.0-reactor.16/BepInEx-6.0.0-reactor.16.zip");
|
||||
|
||||
Reference in new issue
Block a user