File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
xcom2-launcher/xcom2-launcher/Forms Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -226,9 +226,9 @@ private void Reset()
226
226
//RefreshModList();
227
227
}
228
228
229
- private void Save ( bool WotC , bool disableMods = false )
229
+ private void Save ( bool WotC )
230
230
{
231
- XCOM2 . SaveChanges ( Settings , WotC , disableMods ) ;
231
+ XCOM2 . SaveChanges ( Settings , WotC , ChallengeMode ) ;
232
232
Settings . SaveFile ( "settings.json" ) ;
233
233
}
234
234
@@ -274,13 +274,16 @@ private void RunWotC()
274
274
Close ( ) ;
275
275
}
276
276
277
+ private bool ChallengeMode = false ;
278
+
277
279
private void RunChallengeMode ( )
278
280
{
279
281
_updateWorker . CancelAsync ( ) ;
280
282
Settings . Instance . LastLaunchedWotC = true ;
281
- Save ( true , true ) ;
283
+ ChallengeMode = true ;
284
+ Save ( true ) ;
282
285
283
- XCOM2 . RunWotC ( Settings . GamePath , Settings . Arguments . Replace ( "-allowConsole " , "" ) ) ;
286
+ XCOM2 . RunWotC ( Settings . GamePath , Settings . Arguments . ToLower ( ) . Replace ( "-allowconsole " , "" ) ) ;
284
287
285
288
if ( Settings . CloseAfterLaunch )
286
289
Close ( ) ;
You can’t perform that action at this time.
0 commit comments