Gribbleshnibit8 / xcom2-launcher

Unofficial XCOM 2 launcher
GNU General Public License v3.0
12 stars 4 forks source link

Can't start with an existing settings.json #14

Open coldmug opened 7 years ago

coldmug commented 7 years ago

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()