I've been trying recently to save and load arrays of strings with ES2. From what I understood in your documentation, system arrays are already handled without needing to add them via "Manage types". However, each time I try to save an array of strings, I get the following error :
And the save file in which I try to save ends up being corrupted and unreadable in the file editor.Easy Save does not support saving of this type. For more information on supported types, and how to add support for your own types, please go to http://docs.moodkie.com/easy-save-2/supported-types/
Saving is done though this function that uses ES2Writer :
Code: Select all
bool saveFile(string i_fileName)
{
if (string.IsNullOrEmpty(i_fileName))
return false;
bool didSave = false;
Dictionary<string, object> buffers = null;
if (true == saveBuffer.TryGetValue(i_fileName, out buffers))
{
using (ES2Writer writer = ES2Writer.Create(i_fileName))
{
foreach (KeyValuePair<string, object> pair in buffers)
{
writer.Write(pair.Value, pair.Key);
}
writer.Save();
didSave = true;
buffers.Clear();
}
}
return didSave;
}
Many thanks,