Skip to content

Commit

Permalink
Remove debug vars
Browse files Browse the repository at this point in the history
  • Loading branch information
rankynbass committed Jul 28, 2024
1 parent f2381d0 commit 6903fb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/XIVLauncher.Core/Components/MainPage/MainPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,12 @@ private async Task<bool> 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);
}
Expand All @@ -271,7 +271,7 @@ private async Task<bool> 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(
Expand Down

0 comments on commit 6903fb9

Please sign in to comment.