Remove epic workaround, it's no longer needed

This commit is contained in:
js6pak committed 2022-10-25 23:47:05 +02:00
1 parent 0c8156aaf6
commit 6079ea8fd4
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;
// }
}