mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-14 11:18:47 -05:00
Add support for latest Tuanjie versions (up to v1.9)
still partial
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user