修复加载成功还加载备份存档的错误

This commit is contained in:
ZouJin 2023-08-31 15:50:07 +08:00
parent 72dfa895c3
commit 5a4e568e8a

View File

@ -375,7 +375,7 @@ namespace VPet_Simulator.Windows
if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + @"\Save.lps"))
try
{
if (GameLoad(new LpsDocument(File.ReadAllText(AppDomain.CurrentDomain.BaseDirectory + @"\Save.lps")).First()))
if (!GameLoad(new LpsDocument(File.ReadAllText(AppDomain.CurrentDomain.BaseDirectory + @"\Save.lps")).First()))
{
//如果加载存档失败了,试试加载备份,如果没备份,就新建一个
LoadLatestSave(petloader.PetName);