add "Dump with PathID as filename" feature

This commit is contained in:
VaDiM
2020-07-27 23:22:53 +03:00
parent c5f7ef6e91
commit 04266251aa
9 changed files with 66 additions and 30 deletions

View File

@@ -375,7 +375,15 @@ namespace AssetStudioGUI
public static bool ExportDumpFile(AssetItem item, string exportPath)
{
var exportFullName = exportPath + item.Text + ".txt";
string exportFullName;
if (Properties.Settings.Default.pathIDAsDumpName)
{
exportFullName = exportPath + item.m_PathID.ToString() + ".txt";
}
else
{
exportFullName = exportPath + item.Text + ".txt";
}
if (ExportFileExists(exportFullName))
return false;
var str = item.Asset.Dump();