If I check to see if the key exists and then load it, it succeeds. However if I call Load<string> with a default string, it gets an exception and when I trace into the ode it is trying to open a save file with the name of the strings key. So if I call the string "test" it would try and open a save file named test.
Here is an example showing how it works and how it fails:
Code: Select all
string SupportGUID = "";
// this works
if (ES3.KeyExists("SupportGUID"))
{
SupportGUID = ES3.Load<string>("SupportGUID");
}
// This fails with an exception because it tries to open a save file named "SupportGUID"
SupportGUID = ES3.Load<string>("SupportGUID", "");