[GUI] Improve file and folder loading (drag&drop)

- Added support for drag&drop of multiple folders
- Open/Export dialog can now also use a path taken from drag&drop items
This commit is contained in:
VaDiM
2023-05-29 05:14:07 +03:00
parent b7d5d73f23
commit 2f8f57c1a6
3 changed files with 48 additions and 29 deletions

View File

@ -33,14 +33,7 @@ namespace AssetStudioCLI
assetsManager.SpecifyUnityVersion = options.o_unityVersion.Value;
assetsManager.SetAssetFilter(options.o_exportAssetTypes.Value);
if (Directory.Exists(options.inputPath))
{
assetsManager.LoadFolder(options.inputPath);
}
else
{
assetsManager.LoadFiles(options.inputPath);
}
assetsManager.LoadFilesAndFolders(options.inputPath);
if (assetsManager.assetsFileList.Count == 0)
{
Logger.Warning("No Unity file can be loaded.");