Fixed issue with SaveManager tring to delete files when they don't exist.
This commit is contained in:
parent
e3bb6582f5
commit
b4f89b02d0
|
@ -79,8 +79,11 @@ namespace Omegasis.SaveAnywhere.Framework
|
|||
|
||||
/// <summary>Clear saved data.</summary>
|
||||
public void ClearData()
|
||||
{
|
||||
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