mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复Steam云同步导致的储存错误
This commit is contained in:
parent
7d3da8c304
commit
294647a6a9
@ -207,10 +207,14 @@ namespace VPet_Simulator.Windows
|
||||
if (File.Exists(ExtensionValue.BaseDirectory + $"\\Saves\\Save_{st}.lps"))
|
||||
File.Delete(ExtensionValue.BaseDirectory + $"\\Saves\\Save_{st}.lps");
|
||||
|
||||
File.WriteAllText(ExtensionValue.BaseDirectory + $"\\Saves\\Save_{st}.lps", GameSavesData.ToLPS().ToString());
|
||||
|
||||
if (File.Exists(ExtensionValue.BaseDirectory + @"\Save.bkp"))
|
||||
File.Delete(ExtensionValue.BaseDirectory + @"\Save.bkp");
|
||||
|
||||
if (File.Exists(ExtensionValue.BaseDirectory + @"\Save.lps"))
|
||||
File.Move(ExtensionValue.BaseDirectory + @"\Save.lps", ExtensionValue.BaseDirectory + @"\Save.bkp");
|
||||
|
||||
File.WriteAllText(ExtensionValue.BaseDirectory + $"\\Saves\\Save_{st}.lps", GameSavesData.ToLPS().ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user