Skip to content

Commit

Permalink
Added hadnling if Mods folder doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse-Culver committed Apr 18, 2022
1 parent 990530b commit fa7454d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions XCOM2ModLauncherNoSteam/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ private void open_modfldr_btn_Click(object sender, EventArgs e)
{
if (!File.Exists(xcom2_install_loc_txtbx.Text + "\\Binaries\\Win64\\XCom2.exe"))
return;
if (!Directory.Exists(xcom2_install_loc_txtbx.Text + "\\XComGame\\Mods"))
Directory.CreateDirectory(xcom2_install_loc_txtbx.Text + "\\XComGame\\Mods");
Process.Start(xcom2_install_loc_txtbx.Text + "\\XComGame\\Mods");
}

Expand Down

0 comments on commit fa7454d

Please sign in to comment.