Skip to content

Commit

Permalink
Only check for mangohud installation once
Browse files Browse the repository at this point in the history
  • Loading branch information
rankynbass committed Sep 22, 2023
1 parent c18ef3b commit 48ac1d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/XIVLauncher.Core/UnixCompatibility/Dxvk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static class Dxvk
_ => throw new ArgumentOutOfRangeException(),
};

public static bool MangoHudInstalled => DxvkSettings.MangoHudIsInstalled();
public static bool MangoHudInstalled { get; }

public static bool MangoHudEnabled => Program.Config.MangoHud != MangoHud.None;

Expand All @@ -62,6 +62,7 @@ public static class Dxvk
static Dxvk()
{
Versions = new Dictionary<string, Dictionary<string, string>>();
MangoHudInstalled = DxvkSettings.MangoHudIsInstalled();
}

public static void Initialize()
Expand Down

0 comments on commit 48ac1d9

Please sign in to comment.