I was saving my files as JSON.
I started using Easy Save because I want to encrypt my saves.
There is no problem with saving. Here is my script:
Code: Select all
private void Save()
{
Dictionary<string, object> saveJson = new Dictionary<string, object>();
for (int i = 0; i < saveables.Count; i++)
{
saveJson.Add(saveables[i].SaveId, saveables[i].Save());
}
//System.IO.File.WriteAllText(SaveFilePath, Utilities.ConvertToJsonString(saveJson));
ES3.Save("EncrytedSaves", saveJson);
}
Code: Select all
private bool LoadSave(out JSONNode json)
{
json = null;
if (!System.IO.File.Exists(SaveFilePath))
{
return false;
}
json = JSON.Parse(System.IO.File.ReadAllText(SaveFilePath));
return json != null;
}
Regards,