mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Small fixes for migration.
This commit is contained in:
parent
d09c30e2f2
commit
1b576469f3
2 changed files with 7 additions and 2 deletions
|
|
@ -189,7 +189,7 @@ namespace Penumbra.Mods
|
||||||
=> new( Path.Combine( collectionDir.FullName, $"{name.RemoveInvalidPathSymbols()}.json" ) );
|
=> new( Path.Combine( collectionDir.FullName, $"{name.RemoveInvalidPathSymbols()}.json" ) );
|
||||||
|
|
||||||
public FileInfo FileName()
|
public FileInfo FileName()
|
||||||
=> new( Path.Combine( Service< DalamudPluginInterface >.Get().GetPluginConfigDirectory(),
|
=> new( Path.Combine( Dalamud.PluginInterface.GetPluginConfigDirectory(),
|
||||||
$"{Name.RemoveInvalidPathSymbols()}.json" ) );
|
$"{Name.RemoveInvalidPathSymbols()}.json" ) );
|
||||||
|
|
||||||
public void Save()
|
public void Save()
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,13 @@ namespace Penumbra.Mods
|
||||||
|
|
||||||
private void ClearOldTmpDir()
|
private void ClearOldTmpDir()
|
||||||
{
|
{
|
||||||
|
if (!TempWritable)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
TempPath.Refresh();
|
TempPath.Refresh();
|
||||||
if( TempWritable && TempPath.Exists )
|
if( TempPath.Exists )
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue