Skip to content

Commit 6ee248f

Browse files
author
BTernaryTau
committed
Fix existing mod paths
Adds a '\' to the end of any existing mod paths that don't have it
1 parent 0b7853a commit 6ee248f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xcom2-launcher/xcom2-launcher/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ public static Settings InitializeSettings()
142142
if (!settings.ModPaths.Contains(modPath))
143143
settings.ModPaths.Add(modPath);
144144

145+
var pathsToEdit = settings.ModPaths.Where(m => !m.EndsWith("\\"));
146+
for (int i = 0; i < pathsToEdit.Count(); i++)
147+
settings.ModPaths[i] += "\\";
145148

146149
if (settings.ModPaths.Count == 0)
147150
MessageBox.Show(@"Could not find XCOM 2 mod directories. Please fill them in manually in the settings.");

0 commit comments

Comments
 (0)