mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-30 20:33:43 +01:00
Changed initial mod directory to be empty and prevent crashes on invalid or no root directories (also add some information to debug).
This commit is contained in:
parent
e41dedf9dd
commit
92e95400b0
9 changed files with 95 additions and 37 deletions
|
|
@ -43,11 +43,9 @@ namespace Penumbra.UI
|
|||
{
|
||||
_menu.InstalledTab.Selector.ResetModNamesLower();
|
||||
_menu.InstalledTab.Selector.ClearSelection();
|
||||
// create the directory if it doesn't exist
|
||||
Directory.CreateDirectory( _plugin!.Configuration!.ModDirectory );
|
||||
|
||||
var modManager = Service< ModManager >.Get();
|
||||
modManager.DiscoverMods( new DirectoryInfo( _plugin.Configuration.ModDirectory ) );
|
||||
modManager.DiscoverMods( _plugin.Configuration.ModDirectory );
|
||||
_menu.InstalledTab.Selector.ResetModNamesLower();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue