mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
Remove epic workaround, it's no longer needed
This commit is contained in:
1 file changed
-18
@@ -1,4 +1,3 @@
|
||||
using System.Reflection;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace Reactor.Patches.Miscellaneous;
|
||||
@@ -6,9 +5,6 @@ namespace Reactor.Patches.Miscellaneous;
|
||||
[HarmonyPatch]
|
||||
internal static class SplashSkipPatch
|
||||
{
|
||||
private static readonly PropertyInfo? _localUserIdProperty = typeof(EpicManager).GetProperty("localUserId", BindingFlags.Static | BindingFlags.Public);
|
||||
private static bool _loginFinished;
|
||||
|
||||
[HarmonyPatch(typeof(SplashManager), nameof(SplashManager.Start))]
|
||||
[HarmonyPrefix]
|
||||
private static void RemoveMinimumWait(SplashManager __instance)
|
||||
@@ -22,20 +18,6 @@ internal static class SplashSkipPatch
|
||||
{
|
||||
if (__instance.startedSceneLoad) return true;
|
||||
|
||||
if (_localUserIdProperty != null && !_loginFinished)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// TODO add back when new epic version releases
|
||||
// EpicManager calls SaveManager.LoadPlayerPrefs(true) both on successful and unsuccessful EOS login
|
||||
// [HarmonyPatch(typeof(SaveManager), nameof(SaveManager.LoadPlayerPrefs))]
|
||||
// [HarmonyPostfix]
|
||||
// private static void WaitForEpicAuth(bool overrideLoad)
|
||||
// {
|
||||
// if (overrideLoad) _loginFinished = true;
|
||||
// }
|
||||
}
|
||||
Reference in new issue
Block a user