mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-14 11:57:45 +01:00
fix a case where an old json would outright break penumbra
This commit is contained in:
parent
33b5e964ef
commit
fd2e020eec
1 changed files with 13 additions and 1 deletions
|
|
@ -64,7 +64,19 @@ namespace Penumbra.Mods
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var meta = JsonConvert.DeserializeObject< ModMeta >( File.ReadAllText( metaFile.FullName ) );
|
ModMeta meta;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
meta = JsonConvert.DeserializeObject< ModMeta >( File.ReadAllText( metaFile.FullName ) );
|
||||||
|
}
|
||||||
|
catch( Exception e )
|
||||||
|
{
|
||||||
|
PluginLog.Error( e, "failed to parse mod info, attempting basic load for: {FilePath}", metaFile.FullName );
|
||||||
|
continue;
|
||||||
|
|
||||||
|
// todo: handle broken mods properly
|
||||||
|
}
|
||||||
|
|
||||||
var mod = new ResourceMod
|
var mod = new ResourceMod
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue