File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
xcom2-launcher/xcom2-launcher Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,13 @@ public static Settings InitializeSettings()
134
134
MessageBox . Show ( @"Could not find XCOM 2 installation path. Please fill it manually in the settings." ) ;
135
135
136
136
// Verify Mod Paths
137
+ var pathsToEdit = settings . ModPaths . Where ( m => ! m . EndsWith ( "\\ " ) ) . ToList ( ) ;
138
+ foreach ( var modPath in pathsToEdit )
139
+ {
140
+ settings . ModPaths . Add ( modPath + "\\ " ) ;
141
+ settings . ModPaths . Remove ( modPath ) ;
142
+ }
143
+
137
144
var oldPaths = settings . ModPaths . Where ( modPath => ! Directory . Exists ( modPath ) ) . ToList ( ) ;
138
145
foreach ( var modPath in oldPaths )
139
146
settings . ModPaths . Remove ( modPath ) ;
@@ -142,10 +149,6 @@ public static Settings InitializeSettings()
142
149
if ( ! settings . ModPaths . Contains ( modPath ) )
143
150
settings . ModPaths . Add ( modPath ) ;
144
151
145
- var pathsToEdit = settings . ModPaths . Where ( m => ! m . EndsWith ( "\\ " ) ) ;
146
- for ( int i = 0 ; i < pathsToEdit . Count ( ) ; i ++ )
147
- settings . ModPaths [ i ] += "\\ " ;
148
-
149
152
if ( settings . ModPaths . Count == 0 )
150
153
MessageBox . Show ( @"Could not find XCOM 2 mod directories. Please fill them in manually in the settings." ) ;
151
154
You can’t perform that action at this time.
0 commit comments