[GUI] Add option to display debug info for some assets

This commit is contained in:
VaDiM
2026-06-07 00:50:35 +03:00
parent cce02d22c8
commit ddf0c22e6d
2 changed files with 24 additions and 1 deletions
+13 -1
View File
@@ -38,6 +38,7 @@ namespace AssetStudioGUI
private string tempClipboard;
private bool isDarkMode;
private GameOptionsForm gameOptionsForm;
private bool showAssetDebugInfo;
#region FMODControl
private FMOD.System system;
@@ -1138,7 +1139,7 @@ namespace AssetStudioGUI
FMODinfoLabel.Text = frequency + " Hz";
FMODtimerLabel.Text = $"00:00.00 / {(FMODlenms / 1000 / 60):00}:{(FMODlenms / 1000 % 60):00}.{(FMODlenms / 10 % 100):00}";
sound.getFormat(out _, out _, out var audioChannels, out _);
sound.getFormat(out var soundType, out var soundFormat, out var audioChannels, out _);
switch (audioChannels)
{
case 1:
@@ -1151,6 +1152,12 @@ namespace AssetStudioGUI
FMODaudioChannelsLabel.Text = $"{audioChannels}-Channel";
break;
}
if (showAssetDebugInfo)
{
assetItem.InfoText += $"\nSound type: {soundType}";
assetItem.InfoText += $"\nSound format: {soundFormat}";
}
}
private void PreviewVideoClip(AssetItem assetItem, VideoClip m_VideoClip)
@@ -2728,6 +2735,11 @@ namespace AssetStudioGUI
assetsManager.Options.GameSpecific.CustomUnityVersion = null;
}
private void showAssetDebugInfoToolStripMenuItem_Click(object sender, EventArgs e)
{
showAssetDebugInfo = !showAssetDebugInfo;
}
#region FMOD
private void FMODinit()
{