Small fixes for migration.

This commit is contained in:
Ottermandias 2021-09-14 12:38:24 +02:00
parent d09c30e2f2
commit 1b576469f3
2 changed files with 7 additions and 2 deletions

View file

@ -189,7 +189,7 @@ namespace Penumbra.Mods
=> new( Path.Combine( collectionDir.FullName, $"{name.RemoveInvalidPathSymbols()}.json" ) );
public FileInfo FileName()
=> new( Path.Combine( Service< DalamudPluginInterface >.Get().GetPluginConfigDirectory(),
=> new( Path.Combine( Dalamud.PluginInterface.GetPluginConfigDirectory(),
$"{Name.RemoveInvalidPathSymbols()}.json" ) );
public void Save()

View file

@ -35,8 +35,13 @@ namespace Penumbra.Mods
private void ClearOldTmpDir()
{
if (!TempWritable)
{
return;
}
TempPath.Refresh();
if( TempWritable && TempPath.Exists )
if( TempPath.Exists )
{
try
{