mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Settings backup naming improved
was doing `json.-backup.json`
This commit is contained in:
committed by
Timothy Baldridge
parent
c215f92abc
commit
d4782d0ded
@ -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);
|
||||||
|
Reference in New Issue
Block a user