texturepacker fixed and functional. 9p not tested yet.

This commit is contained in:
2018-12-09 13:45:47 -06:00
parent 87952248c5
commit c8ec1b01b1
3 changed files with 103 additions and 88 deletions

View File

@@ -58,12 +58,18 @@ namespace RecrownedAthenaeum.Persistence
private bool LoadSpecific(Type preference)
{
string path = savePath + "/" + preference.Name + ".xml";
if (File.Exists(path))
try
{
Stream stream = new FileStream(path, FileMode.Open);
preferenceList[preference] = xmlSerializer.Deserialize(stream);
stream.Close();
return true;
if (File.Exists(path))
{
Stream stream = new FileStream(path, FileMode.Open);
preferenceList[preference] = xmlSerializer.Deserialize(stream);
stream.Close();
return true;
}
} catch (InvalidOperationException)
{
return false;
}
return false;
}