Skip to content

Commit

Permalink
Rename some vars to make their purpose more apparent.
Browse files Browse the repository at this point in the history
  • Loading branch information
rankynbass committed Jul 23, 2023
1 parent e7794d3 commit ec316fe
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/XIVLauncher.Common.Unix/Compatibility/WineSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,24 @@ public string RunCommand

public Dictionary<string, string> Environment { get; }

public WineSettings(string customwine, string folder, string url, string rootFolder, Dictionary<string, string> env = null)
public WineSettings(string customWinePath, string managedFolder, string managedDownloadUrl, string rootFolder, Dictionary<string, string> env = null)
{
Folder = folder;
DownloadUrl = url;
Folder = managedFolder;
DownloadUrl = managedDownloadUrl;
Environment = env ?? new Dictionary<string, string>();

// Use customwine to pass in the custom wine bin/ path. If it's empty, we construct the RunCommand from the folder.
if (string.IsNullOrEmpty(customwine))
// Use customWinePath to pass in the custom wine bin/ path. If it's empty, we construct the RunCommand from the managedFolder.
if (string.IsNullOrEmpty(customWinePath))
{
var wineBinPath = Path.Combine(Path.Combine(rootFolder, "compatibilitytool", "wine"), folder, "bin");
var wineBinPath = Path.Combine(Path.Combine(rootFolder, "compatibilitytool", "wine"), managedFolder, "bin");
RunCommandFolder = wineBinPath;
WineServer = Path.Combine(wineBinPath, "wineserver");
IsManaged = true;
}
else
{
RunCommandFolder = customwine;
WineServer = Path.Combine(customwine, "wineserver");
RunCommandFolder = customWinePath;
WineServer = Path.Combine(customWinePath, "wineserver");
IsManaged = false;
}
}
Expand Down

0 comments on commit ec316fe

Please sign in to comment.