Gribbleshnibit8/xcom2-launcher

Can't start with an existing settings.json

Opened this issue · 0 comments

After deleting author's json file, I can launch the program, choose some mods and everything works OK. A new settings.json is created, I'm assuming with my settings. But the next time I start the program, I get an exception and it fails to start. I get the following in error.log

Sequence contains more than one matching element
Stack:
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source, Func2 predicate)
at XCOM2Launcher.Mod.ModList.Import(String modDir, ModSource source)
at XCOM2Launcher.Mod.ModList.ImportMods(String dir)
at XCOM2Launcher.Settings.ImportMods()
at XCOM2Launcher.Program.InitializeSettings()
at XCOM2Launcher.Program.Main()