From 6903fb9f71aebafbd615d11de8c5c8d9337a6e14 Mon Sep 17 00:00:00 2001 From: Rankyn Bass Date: Sun, 28 Jul 2024 14:27:43 -0700 Subject: [PATCH] Remove debug vars --- src/XIVLauncher.Core/Components/MainPage/MainPage.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/XIVLauncher.Core/Components/MainPage/MainPage.cs b/src/XIVLauncher.Core/Components/MainPage/MainPage.cs index 3d3aa695..69806061 100644 --- a/src/XIVLauncher.Core/Components/MainPage/MainPage.cs +++ b/src/XIVLauncher.Core/Components/MainPage/MainPage.cs @@ -249,12 +249,12 @@ private async Task TryProcessLoginResult(Launcher.LoginResult loginResult, var preErrorMsg = "window.external.user(\"login=auth,ng,err,"; var postErrorMsg = "\");"; - if (loginResult.State == Launcher.LoginState.NoService || Environment.GetEnvironmentVariable("XL_LOGIN_TEST") == "sub") + if (loginResult.State == Launcher.LoginState.NoService) { throw new OauthLoginException(preErrorMsg + "No service account or subscription" + postErrorMsg); } - if (loginResult.State == Launcher.LoginState.NoTerms || Environment.GetEnvironmentVariable("XL_LOGIN_TEST") == "terms") + if (loginResult.State == Launcher.LoginState.NoTerms) { throw new OauthLoginException(preErrorMsg + "Need to accept terms of use" + postErrorMsg); } @@ -271,7 +271,7 @@ private async Task TryProcessLoginResult(Launcher.LoginResult loginResult, * In the future we may be able to just delete /boot and run boot patches again, but this doesn't happen often enough to warrant the * complexity and if boot is fucked game probably is too. */ - if (loginResult.State == Launcher.LoginState.NeedsPatchBoot || Environment.GetEnvironmentVariable("XL_LOGIN_TEST") == "boot") + if (loginResult.State == Launcher.LoginState.NeedsPatchBoot) { /* CustomMessageBox.Show(