mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-11-12 23:32:42 -05:00
[CLI] Add more info to the "Info" mode
This commit is contained in:
@ -647,6 +647,7 @@ namespace AssetStudioCLI.Options
|
||||
break;
|
||||
case "info":
|
||||
o_workMode.Value = WorkMode.Info;
|
||||
o_exportAssetTypes.Value.Add(ClassIDType.Animator);
|
||||
break;
|
||||
case "l2d":
|
||||
case "live2d":
|
||||
|
||||
@ -491,9 +491,12 @@ namespace AssetStudioCLI
|
||||
public static void ShowExportableAssetsInfo()
|
||||
{
|
||||
var exportableAssetsCountDict = new Dictionary<ClassIDType, int>();
|
||||
string info = "";
|
||||
var info = "======";
|
||||
if (parsedAssetsList.Count > 0)
|
||||
{
|
||||
info += $"\n\n[Unity Version]" +
|
||||
$"\n# {parsedAssetsList[0].Asset.version}";
|
||||
|
||||
foreach (var asset in parsedAssetsList)
|
||||
{
|
||||
if (exportableAssetsCountDict.ContainsKey(asset.Type))
|
||||
@ -506,15 +509,17 @@ namespace AssetStudioCLI
|
||||
}
|
||||
}
|
||||
|
||||
info += "\n[Exportable Assets Count]\n";
|
||||
info += "\n\n[Exportable Assets Count]";
|
||||
foreach (var assetType in exportableAssetsCountDict.Keys)
|
||||
{
|
||||
info += $"# {assetType}: {exportableAssetsCountDict[assetType]}\n";
|
||||
info += $"\n# {assetType}: {exportableAssetsCountDict[assetType]}";
|
||||
}
|
||||
if (exportableAssetsCountDict.Count > 1)
|
||||
{
|
||||
info += $"#\n# Total: {parsedAssetsList.Count} assets";
|
||||
info += $"\n#\n# Total: {parsedAssetsList.Count} assets";
|
||||
}
|
||||
|
||||
info += $"\n\n# Exportable Live2D Models: {l2dModelDict.Count}";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user