Add support for latest Tuanjie versions (up to v1.9)

still partial
This commit is contained in:
VaDiM
2026-05-27 02:50:58 +03:00
parent 22e4b0e8a1
commit 7adfdef62f
12 changed files with 392 additions and 181 deletions
+7
View File
@@ -48,6 +48,13 @@ namespace AssetStudioCLI
debugLog += sb.ToString();
}
if (type == ImageFormat.Png && m_Texture2D.m_TextureFormat.IsPng())
{
File.WriteAllBytes(exportFullPath, m_Texture2D.image_data.GetData());
debugLog += $"{item.TypeString} \"{item.Text}\" exported to \"{exportFullPath}\"";
return true;
}
if (!converter.TryConvertToBgra32Image(flip: true, out var image))
{
Logger.Error($"{debugLog}Export error. Failed to convert texture \"{m_Texture2D.m_Name}\" into image");