remember the last opened path, close #646

This commit is contained in:
Perfare
2021-06-30 22:41:16 +08:00
parent 53720e37ab
commit 4345885cc9
3 changed files with 29 additions and 10 deletions

View File

@ -531,13 +531,13 @@ namespace AssetStudioGUI
//处理非法文件名
var filename = FixFileName(j.Text);
//每个文件存放在单独的文件夹
var targetPath = $"{savePath}{filename}\\";
var targetPath = $"{savePath}{filename}{Path.DirectorySeparatorChar}";
//重名文件处理
for (int i = 1; ; i++)
{
if (Directory.Exists(targetPath))
{
targetPath = $"{savePath}{filename} ({i})\\";
targetPath = $"{savePath}{filename} ({i}){Path.DirectorySeparatorChar}";
}
else
{