Skip to content

Commit

Permalink
Fix: #147
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinaS-64892 committed Sep 12, 2023
1 parent a8c86e3 commit 8731531
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 8731531

Please sign in to comment.