Merge branch 'Perfare_master' into AssetStudio-mod

This commit is contained in:
VaDiM
2021-12-05 01:32:48 +02:00
13 changed files with 63 additions and 28 deletions

View File

@ -457,7 +457,7 @@ namespace AssetStudioGUI
if (Properties.Settings.Default.openAfterExport && exportedCount > 0)
{
Process.Start(savePath);
OpenFolderInExplorer(savePath);
}
});
}
@ -502,7 +502,7 @@ namespace AssetStudioGUI
if (Properties.Settings.Default.openAfterExport && toExportAssets.Count() > 0)
{
Process.Start(savePath);
OpenFolderInExplorer(savePath);
}
});
}
@ -562,7 +562,7 @@ namespace AssetStudioGUI
}
if (Properties.Settings.Default.openAfterExport)
{
Process.Start(savePath);
OpenFolderInExplorer(savePath);
}
StatusStripUpdate("Finished");
});
@ -588,7 +588,7 @@ namespace AssetStudioGUI
ExportAnimator(animator, exportPath, animationList);
if (Properties.Settings.Default.openAfterExport)
{
Process.Start(exportPath);
OpenFolderInExplorer(exportPath);
}
Progress.Report(1, 1);
StatusStripUpdate($"Finished exporting {animator.Text}");
@ -630,7 +630,7 @@ namespace AssetStudioGUI
}
if (Properties.Settings.Default.openAfterExport)
{
Process.Start(exportPath);
OpenFolderInExplorer(exportPath);
}
}
else
@ -660,7 +660,7 @@ namespace AssetStudioGUI
}
if (Properties.Settings.Default.openAfterExport)
{
Process.Start(Path.GetDirectoryName(exportPath));
OpenFolderInExplorer(Path.GetDirectoryName(exportPath));
}
});
}
@ -708,5 +708,12 @@ namespace AssetStudioGUI
}
return str;
}
public static void OpenFolderInExplorer(string path)
{
var info = new ProcessStartInfo(path);
info.UseShellExecute = true;
Process.Start(info);
}
}
}