texturepacker fixed and functional. 9p not tested yet.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user