Skip to content
Snippets Groups Projects
Commit 17e1661b authored by MaZiFAU's avatar MaZiFAU
Browse files

More Robust StageLoading, Catching Exceptions

parent e7ac1ce0
No related branches found
No related tags found
No related merge requests found
......@@ -416,8 +416,16 @@ public static Dictionary<string, Stage> Grup(List<Directories> hierarchie = null
if (file.Extension != ".JSON")
continue;
if (ShallowLoad(out Stage tmp, file.FullName))
ret.Add(tmp.name, tmp);
try
{
if (ShallowLoad(out Stage tmp, file.FullName))
ret.Add(tmp.name, tmp);
}
catch (Exception ex)
{
Debug.LogError("Could not load StageFile: " + file.FullName);
Debug.LogException(ex);
}
}
return ret;
......
fileFormatVersion: 2
guid: 9e6f77486fb9c93489d4fb803ade1379
guid: db4a88d3caba4a8499fdb182c8187a06
TextScriptImporter:
externalObjects: {}
userData:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment