mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Added nosettings argument
This commit is contained in:
parent
1e303a8339
commit
eed53e38df
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user