- [CLI] Create output folder if not exist

This commit is contained in:
Razmoth
2023-09-17 01:47:40 +04:00
parent e5cbb8bdae
commit da5f232dcc

View File

@@ -50,6 +50,7 @@ namespace AssetStudioCLI
assetsManager.Silent = o.Silent;
assetsManager.Game = game;
ModelOnly = o.Model;
o.Output.Create();
if (o.Key != default)
{
@@ -86,10 +87,6 @@ namespace AssetStudioCLI
{
throw new Exception("Unable to build AssetMap with input_path as a file !!");
}
if (!o.Output.Exists)
{
o.Output.Create();
}
var resetEvent = new ManualResetEvent(false);
AssetsHelper.BuildAssetMap(files, o.MapName, game, o.Output.FullName, o.MapType, resetEvent, o.TypeFilter, o.NameFilter, o.ContainerFilter);
resetEvent.WaitOne();