Add option to export Live2D Cubism models

This commit is contained in:
VaDiM
2023-07-02 03:10:11 +03:00
parent 6d41693b85
commit aea6cbc97f
17 changed files with 1256 additions and 31 deletions

View File

@ -36,7 +36,7 @@ namespace AssetStudioCLI
if (studio.LoadAssets())
{
studio.ParseAssets();
if (options.filterBy != FilterBy.None)
if (options.filterBy != FilterBy.None && options.o_workMode.Value != WorkMode.ExportLive2D)
{
studio.FilterAssets();
}
@ -44,12 +44,18 @@ namespace AssetStudioCLI
{
studio.ExportAssetList();
}
if (options.o_workMode.Value == WorkMode.Info)
switch (options.o_workMode.Value)
{
studio.ShowExportableAssetsInfo();
return;
case WorkMode.Info:
studio.ShowExportableAssetsInfo();
break;
case WorkMode.ExportLive2D:
studio.ExportLive2D();
break;
default:
studio.ExportAssets();
break;
}
studio.ExportAssets();
}
}
catch (Exception ex)