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;