better check for cache directory existing on startup
This commit is contained in:
@@ -87,6 +87,13 @@ namespace MareSynchronos
|
|||||||
public void Initialize(DalamudPluginInterface pluginInterface)
|
public void Initialize(DalamudPluginInterface pluginInterface)
|
||||||
{
|
{
|
||||||
_pluginInterface = pluginInterface;
|
_pluginInterface = pluginInterface;
|
||||||
|
|
||||||
|
if (!Directory.Exists(CacheFolder))
|
||||||
|
{
|
||||||
|
InitialScanComplete = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Save()
|
public void Save()
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ namespace MareSynchronos.UI
|
|||||||
UiShared.ColorTextWrapped("You do not have a valid Penumbra path set. Open Penumbra and set up a valid path for the mod directory.", ImGuiColors.DalamudRed);
|
UiShared.ColorTextWrapped("You do not have a valid Penumbra path set. Open Penumbra and set up a valid path for the mod directory.", ImGuiColors.DalamudRed);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_fileCacheManager.IsScanRunning && !string.IsNullOrEmpty(_pluginConfiguration.CacheFolder) && _uiShared.HasValidPenumbraModPath)
|
if (!_fileCacheManager.IsScanRunning && !string.IsNullOrEmpty(_pluginConfiguration.CacheFolder) && _uiShared.HasValidPenumbraModPath && Directory.Exists(_pluginConfiguration.CacheFolder))
|
||||||
{
|
{
|
||||||
UiShared.TextWrapped("You can adjust how many parallel threads will be used for scanning. Mind that ultimately it will depend on the amount of mods, your disk speed and your CPU. " +
|
UiShared.TextWrapped("You can adjust how many parallel threads will be used for scanning. Mind that ultimately it will depend on the amount of mods, your disk speed and your CPU. " +
|
||||||
"More is not necessarily better, the default of 10 should be fine for most cases.");
|
"More is not necessarily better, the default of 10 should be fine for most cases.");
|
||||||
|
|||||||
Reference in New Issue
Block a user