Skip to content

Commit

Permalink
Merge pull request #149 from ReinaS-64892/v0.3.6
Browse files Browse the repository at this point in the history
Fix: #147
  • Loading branch information
ReinaS-64892 authored Sep 12, 2023
2 parents a8c86e3 + 8731531 commit ddaa175
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Runtime/AssetSaveHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public static bool IsTemporary
{
ClearTemp();
}
else
{
SaveDirectoryCheck();
}
}
}
public const string SaveDirectory = "Assets/TexTransToolGenerates";
Expand Down Expand Up @@ -118,6 +122,7 @@ public static List<T> LoadAssets<T>() where T : UnityEngine.Object
}
private static void ClearTemp()
{
SaveDirectoryCheck();
var tempPath = Path.Combine(SaveDirectory, TempDirName);
foreach (var path in Directory.GetFiles(tempPath))
{
Expand Down

0 comments on commit ddaa175

Please sign in to comment.