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:
Ottermandias 2021-07-11 23:15:42 +02:00
parent e41dedf9dd
commit 92e95400b0
9 changed files with 95 additions and 37 deletions

View file

@ -1,5 +1,7 @@
using System.Numerics;
using ImGuiNET;
using Penumbra.Mods;
using Penumbra.Util;
namespace Penumbra.UI
{
@ -63,7 +65,7 @@ namespace Penumbra.UI
_collectionsTab.Draw();
_importTab.Draw();
if( !_importTab.IsImporting() )
if( Service<ModManager>.Get().Valid && !_importTab.IsImporting() )
{
_browserTab.Draw();
InstalledTab.Draw();