mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 16:57:22 +01:00
better check for cache directory existing on startup
This commit is contained in:
parent
a38b020cc9
commit
cfbe5179a8
2 changed files with 8 additions and 1 deletions
|
|
@ -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.");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue