针对Steam自动创建存档文件夹的优化

This commit is contained in:
ZouJin 2023-09-26 12:52:37 +08:00
parent baf6e65558
commit 6228c04119

View File

@ -167,13 +167,13 @@ namespace VPet_Simulator.Windows
file.MoveTo(ExtensionValue.BaseDirectory + @"\Saves\" + file.Name); file.MoveTo(ExtensionValue.BaseDirectory + @"\Saves\" + file.Name);
else else
file.Delete(); file.Delete();
Directory.Delete(ExtensionValue.BaseDirectory + @"\BackUP"); Directory.Delete(ExtensionValue.BaseDirectory + @"\BackUP", true);
} }
} }
if (!Directory.Exists(ExtensionValue.BaseDirectory + @"\Saves")) //if (!Directory.Exists(ExtensionValue.BaseDirectory + @"\Saves"))
{ //{
Directory.CreateDirectory(ExtensionValue.BaseDirectory + @"\Saves"); // Directory.CreateDirectory(ExtensionValue.BaseDirectory + @"\Saves");
} //}
Task.Run(GameLoad); Task.Run(GameLoad);
} }