mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-19 15:14:25 +01:00
Skip non-existing directories when migrating sort order.
This commit is contained in:
parent
60cf7e3c2e
commit
2e1a11d16c
2 changed files with 2 additions and 2 deletions
|
|
@ -111,7 +111,7 @@ public partial class Configuration
|
|||
j.WriteStartObject();
|
||||
j.WritePropertyName( "Data" );
|
||||
j.WriteStartObject();
|
||||
foreach( var (mod, path) in ModSortOrder )
|
||||
foreach( var (mod, path) in ModSortOrder.Where( kvp => Directory.Exists( Path.Combine( _config.ModDirectory, kvp.Key ) ) ) )
|
||||
{
|
||||
j.WritePropertyName( mod, true );
|
||||
j.WriteValue( path );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue