Fixed issue with SaveManager tring to delete files when they don't exist.
This commit is contained in:
parent
e3bb6582f5
commit
b4f89b02d0
|
@ -80,7 +80,10 @@ namespace Omegasis.SaveAnywhere.Framework
|
|||
/// <summary>Clear saved data.</summary>
|
||||
public void ClearData()
|
||||
{
|
||||
File.Delete(Path.Combine(this.Helper.DirectoryPath, this.RelativeDataPath));
|
||||
if (File.Exists(Path.Combine(this.Helper.DirectoryPath, this.RelativeDataPath)))
|
||||
{
|
||||
File.Delete(Path.Combine(this.Helper.DirectoryPath, this.RelativeDataPath));
|
||||
}
|
||||
this.RemoveLegacyDataForThisPlayer();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue