Added nosettings argument

This commit is contained in:
erri120
2019-11-17 14:41:08 +01:00
parent 1e303a8339
commit eed53e38df

View File

@ -32,7 +32,8 @@ namespace Wabbajack
public static MainSettings LoadSettings()
{
if (!File.Exists(Filename)) return new MainSettings();
string[] args = Environment.GetCommandLineArgs();
if (!File.Exists(Filename) || args[1] == "nosettings") return new MainSettings();
return JsonConvert.DeserializeObject<MainSettings>(File.ReadAllText(Filename));
}