Skip to content
This repository was archived by the owner on Jan 21, 2023. It is now read-only.

Commit c9394cd

Browse files
committed
Fixed #734
1 parent 46c0e8f commit c9394cd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

AssetStudioGUI/Studio.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,14 @@ public static void ExportAssets(string savePath, List<AssetItem> toExportAssets,
399399
}
400400
break;
401401
case 2: //source file
402-
exportPath = Path.Combine(savePath, asset.SourceFile.fullName + "_export");
402+
if (string.IsNullOrEmpty(asset.SourceFile.originalPath))
403+
{
404+
exportPath = Path.Combine(savePath, asset.SourceFile.fileName + "_export");
405+
}
406+
else
407+
{
408+
exportPath = Path.Combine(savePath, Path.GetFileName(asset.SourceFile.originalPath) + "_export", asset.SourceFile.fileName);
409+
}
403410
break;
404411
default:
405412
exportPath = savePath;

0 commit comments

Comments
 (0)