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

Commit

Permalink
Fixed #734
Browse files Browse the repository at this point in the history
  • Loading branch information
Perfare committed May 27, 2021
1 parent 46c0e8f commit c9394cd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion AssetStudioGUI/Studio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,14 @@ public static void ExportAssets(string savePath, List<AssetItem> 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;
Expand Down

0 comments on commit c9394cd

Please sign in to comment.