Settings backup naming improved

was doing `json.-backup.json`
This commit is contained in:
Justin Swanson
2020-04-01 14:12:02 -05:00
committed by Timothy Baldridge
parent c215f92abc
commit d4782d0ded

View File

@ -1,4 +1,4 @@
using Newtonsoft.Json; using Newtonsoft.Json;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
@ -39,7 +39,7 @@ namespace Wabbajack
if (settings.Version == Consts.SettingsVersion) if (settings.Version == Consts.SettingsVersion)
return true; return true;
var backup = (AbsolutePath)(Consts.SettingsFile + "-backup.json"); var backup = Consts.SettingsFile.AppendToName("-backup");
backup.Delete(); backup.Delete();
Consts.SettingsFile.CopyTo(backup); Consts.SettingsFile.CopyTo(backup);