Skip to content

Commit

Permalink
Refactoring: updated FrmInstaller class constructor to use only local…
Browse files Browse the repository at this point in the history
… variables.
  • Loading branch information
xvitaly committed Dec 2, 2024
1 parent 067b662 commit 1329c6b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/srcrepair/FrmInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ public partial class FrmInstaller : Form
/// <summary>
/// FrmInstaller class constructor.
/// </summary>
/// <param name="F">Full path to the game installation directory.</param>
/// <param name="I">If current game is using a special directory for storing custom user content.</param>
/// <param name="U">Full path to the custom user content directory.</param>
public FrmInstaller(string F, bool I, string U)
/// <param name="GameDir">Full path to the game installation directory.</param>
/// <param name="UseCustomDir">If current game is using a special directory for storing custom user content.</param>
/// <param name="CustomDir">Full path to the custom user content directory.</param>
public FrmInstaller(string GameDir, bool UseCustomDir, string CustomDir)
{
InitializeComponent();
FullGamePath = F;
CustomInstallDir = U;
UserInstallDir = I ? Path.Combine(CustomInstallDir, Properties.Settings.Default.UserCustDirName) : FullGamePath;
FullGamePath = GameDir;
CustomInstallDir = CustomDir;
UserInstallDir = UseCustomDir ? Path.Combine(CustomDir, Properties.Settings.Default.UserCustDirName) : GameDir;
}

/// <summary>
Expand Down

0 comments on commit 1329c6b

Please sign in to comment.