From 6079ea8fd4d487381e6e7dcc5a22c33fc5e663f3 Mon Sep 17 00:00:00 2001 From: js6pak Date: Tue, 25 Oct 2022 23:47:05 +0200 Subject: [PATCH] Remove epic workaround, it's no longer needed --- .../Patches/Miscellaneous/SplashSkipPatch.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Reactor/Patches/Miscellaneous/SplashSkipPatch.cs b/Reactor/Patches/Miscellaneous/SplashSkipPatch.cs index 56a823f..20e3519 100644 --- a/Reactor/Patches/Miscellaneous/SplashSkipPatch.cs +++ b/Reactor/Patches/Miscellaneous/SplashSkipPatch.cs @@ -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; - // } }