Skip to content

Commit

Permalink
Add checkbox to set windows version to 7
Browse files Browse the repository at this point in the history
  • Loading branch information
rankynbass committed Jun 18, 2023
1 parent 20178de commit c68253c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/XIVLauncher.Core/Components/MainPage/MainPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,10 @@ public async Task<Process> StartGameAndAddon(Launcher.LoginResult loginResult, b
}
}

var winver = (App.Settings.SetWin7 ?? false) ? "win7" : "win10";

Program.CompatibilityTools.RunInPrefix($"winecfg /v {winver}");

if (Environment.OSVersion.Platform == PlatformID.Win32NT)
{
runner = new WindowsGameRunner(dalamudLauncher, dalamudOk, Program.DalamudUpdater.Runtime);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public SettingsTabWine()
}
},

new SettingsEntry<bool>("Set Windows version to 7", "Default is 10. Setting to 7 may fix some networking issues with plugins.", () => Program.Config.SetWin7 ?? false, b => Program.Config.SetWin7 = b),

new SettingsEntry<Dxvk.DxvkHudType>("DXVK Overlay", "Configure how much of the DXVK overlay is to be shown.", () => Program.Config.DxvkHudType, type => Program.Config.DxvkHudType = type),
new SettingsEntry<string>("WINEDEBUG Variables", "Configure debug logging for wine. Useful for troubleshooting.", () => Program.Config.WineDebugVars ?? string.Empty, s => Program.Config.WineDebugVars = s)
};
Expand Down
2 changes: 2 additions & 0 deletions src/XIVLauncher.Core/Configuration/ILauncherConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ public interface ILauncherConfig

public bool? FixIM { get; set; }

public bool? SetWin7 { get; set; }

#endregion

#region Dalamud
Expand Down
1 change: 1 addition & 0 deletions src/XIVLauncher.Core/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ private static void LoadConfig(Storage storage)
Config.DxvkAsyncEnabled ??= true;
Config.ESyncEnabled ??= true;
Config.FSyncEnabled ??= false;
Config.SetWin7 ??= true;

Config.WineStartupType ??= WineStartupType.Managed;
Config.WineBinaryPath ??= "/usr/bin";
Expand Down

0 comments on commit c68253c

Please sign in to comment.