修复不加载备份设置的错误 fix #367

This commit is contained in:
ZouJin 2024-05-05 16:41:55 +08:00
parent 6eb7253488
commit 2f91f6e00a

View File

@ -1258,9 +1258,9 @@ namespace VPet_Simulator.Windows
{ {
Set = new Setting(this, File.ReadAllText(ExtensionValue.BaseDirectory + @$"\Setting{PrefixSave}.lps")); Set = new Setting(this, File.ReadAllText(ExtensionValue.BaseDirectory + @$"\Setting{PrefixSave}.lps"));
} }
else if (PrefixSave == "" && File.Exists(ExtensionValue.BaseDirectory + @"\Setting.lps")) else if (PrefixSave == "" && File.Exists(ExtensionValue.BaseDirectory + @"\Setting.bkp"))
{ {
Set = new Setting(this, File.ReadAllText(ExtensionValue.BaseDirectory + @"\Setting.lps")); Set = new Setting(this, File.ReadAllText(ExtensionValue.BaseDirectory + @"\Setting.bkp"));
} }
else else
Set = new Setting(this, "Setting#VPET:|\n"); Set = new Setting(this, "Setting#VPET:|\n");