Skip to content

Commit

Permalink
Merge pull request #28 from Blooym/launch-without-3pp
Browse files Browse the repository at this point in the history
Launch without 3rd-party plugins option
  • Loading branch information
Blooym authored Jun 16, 2023
2 parents 35df567 + ba63017 commit 1ee7ad7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/XIVLauncher.Core/Components/MainPage/LoginAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ public enum LoginAction
{
Game,
GameNoDalamud,
GameNoThirdparty,
GameNoLaunch,
Repair,
Fake,
Expand Down
7 changes: 7 additions & 0 deletions src/XIVLauncher.Core/Components/MainPage/LoginFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ public override void Draw()

ImGui.Separator();

if (ImGui.MenuItem("Launch without 3rd-party plugins"))
{
this.OnLogin?.Invoke(LoginAction.GameNoThirdparty);
}

ImGui.Separator();

if (ImGui.MenuItem("Patch without launching"))
{
this.OnLogin?.Invoke(LoginAction.GameNoLaunch);
Expand Down
2 changes: 1 addition & 1 deletion src/XIVLauncher.Core/Components/MainPage/MainPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ private async Task<bool> TryProcessLoginResult(Launcher.LoginResult loginResult,

try
{
using var process = await StartGameAndAddon(loginResult, isSteam, action == LoginAction.GameNoDalamud, false).ConfigureAwait(false);
using var process = await StartGameAndAddon(loginResult, isSteam, action == LoginAction.GameNoDalamud, action == LoginAction.GameNoThirdparty).ConfigureAwait(false);

if (process is null)
throw new Exception("Could not obtain Process Handle");
Expand Down

0 comments on commit 1ee7ad7

Please sign in to comment.