mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +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;
|
||||
}
|
||||
|
||||
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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue