From c9394cd95734786f36b47728131e820e56718e16 Mon Sep 17 00:00:00 2001 From: Perfare Date: Fri, 28 May 2021 03:49:46 +0800 Subject: [PATCH] Fixed #734 --- AssetStudioGUI/Studio.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/AssetStudioGUI/Studio.cs b/AssetStudioGUI/Studio.cs index 90ae7790..04c0532c 100644 --- a/AssetStudioGUI/Studio.cs +++ b/AssetStudioGUI/Studio.cs @@ -399,7 +399,14 @@ public static void ExportAssets(string savePath, List toExportAssets, } break; case 2: //source file - exportPath = Path.Combine(savePath, asset.SourceFile.fullName + "_export"); + if (string.IsNullOrEmpty(asset.SourceFile.originalPath)) + { + exportPath = Path.Combine(savePath, asset.SourceFile.fileName + "_export"); + } + else + { + exportPath = Path.Combine(savePath, Path.GetFileName(asset.SourceFile.originalPath) + "_export", asset.SourceFile.fileName); + } break; default: exportPath = savePath;