mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Fix crash during migration
This commit is contained in:
parent
c4607a718e
commit
6902ef48d1
2 changed files with 3 additions and 3 deletions
|
|
@ -182,7 +182,7 @@ public partial class Configuration
|
|||
DefaultCollection = _data[ nameof( DefaultCollection ) ]?.ToObject< string >() ?? DefaultCollection;
|
||||
CharacterCollections = _data[ nameof( CharacterCollections ) ]?.ToObject< Dictionary< string, string > >() ?? CharacterCollections;
|
||||
ModCollection.Manager.SaveActiveCollections( DefaultCollection, CurrentCollection,
|
||||
CharacterCollections.Select( kvp => ( kvp.Key, kvp.Value ) ), Array.Empty<(CollectionType, string)>() );
|
||||
CharacterCollections.Select( kvp => ( kvp.Key, kvp.Value ) ), Array.Empty< (CollectionType, string) >() );
|
||||
}
|
||||
|
||||
// Collections were introduced and the previous CurrentCollection got put into ModDirectory.
|
||||
|
|
|
|||
|
|
@ -73,7 +73,8 @@ public class Penumbra : IDalamudPlugin
|
|||
DevPenumbraExists = CheckDevPluginPenumbra();
|
||||
IsNotInstalledPenumbra = CheckIsNotInstalled();
|
||||
|
||||
Framework = new FrameworkManager();
|
||||
Framework = new FrameworkManager();
|
||||
CharacterUtility = new CharacterUtility();
|
||||
Backup.CreateBackup( PenumbraBackupFiles() );
|
||||
Config = Configuration.Load();
|
||||
|
||||
|
|
@ -82,7 +83,6 @@ public class Penumbra : IDalamudPlugin
|
|||
ResourceLoader = new ResourceLoader( this );
|
||||
ResourceLoader.EnableHooks();
|
||||
ResourceLogger = new ResourceLogger( ResourceLoader );
|
||||
CharacterUtility = new CharacterUtility();
|
||||
ResidentResources = new ResidentResourceManager();
|
||||
ModManager = new Mod.Manager( Config.ModDirectory );
|
||||
ModManager.DiscoverMods();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue