mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-25 05:40:21 -04:00
Add Tuanjie build targets
This commit is contained in:
parent
08d50a8013
commit
d2f69432e4
@ -1,9 +1,4 @@
|
|||||||
using System;
|
namespace AssetStudio
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace AssetStudio
|
|
||||||
{
|
{
|
||||||
public enum BuildTarget
|
public enum BuildTarget
|
||||||
{
|
{
|
||||||
@ -56,4 +51,14 @@ namespace AssetStudio
|
|||||||
VisionOS,
|
VisionOS,
|
||||||
UnknownPlatform = 9999
|
UnknownPlatform = 9999
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum TuanjieBuildTarget
|
||||||
|
{
|
||||||
|
WeixinMiniGame = 47,
|
||||||
|
OpenHarmony,
|
||||||
|
HMIAndroid,
|
||||||
|
ArmLinux,
|
||||||
|
ArmLinuxServer,
|
||||||
|
VisionOS,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,7 @@ namespace AssetStudio
|
|||||||
public SerializedFileHeader header;
|
public SerializedFileHeader header;
|
||||||
private byte m_FileEndianess;
|
private byte m_FileEndianess;
|
||||||
public BuildTarget m_TargetPlatform = BuildTarget.UnknownPlatform;
|
public BuildTarget m_TargetPlatform = BuildTarget.UnknownPlatform;
|
||||||
|
public string targetPlatformString;
|
||||||
private bool m_EnableTypeTree = true;
|
private bool m_EnableTypeTree = true;
|
||||||
public List<SerializedType> m_Types;
|
public List<SerializedType> m_Types;
|
||||||
public int bigIDEnabled = 0;
|
public int bigIDEnabled = 0;
|
||||||
@ -76,11 +77,17 @@ namespace AssetStudio
|
|||||||
}
|
}
|
||||||
if (header.m_Version >= SerializedFileFormatVersion.Unknown_8)
|
if (header.m_Version >= SerializedFileFormatVersion.Unknown_8)
|
||||||
{
|
{
|
||||||
m_TargetPlatform = (BuildTarget)reader.ReadInt32();
|
var target = reader.ReadInt32();
|
||||||
|
|
||||||
|
m_TargetPlatform = (BuildTarget)target;
|
||||||
if (!Enum.IsDefined(typeof(BuildTarget), m_TargetPlatform))
|
if (!Enum.IsDefined(typeof(BuildTarget), m_TargetPlatform))
|
||||||
{
|
{
|
||||||
m_TargetPlatform = BuildTarget.UnknownPlatform;
|
m_TargetPlatform = BuildTarget.UnknownPlatform;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
targetPlatformString = version.IsTuanjie && Enum.IsDefined(typeof(TuanjieBuildTarget), target)
|
||||||
|
? ((TuanjieBuildTarget)target).ToString()
|
||||||
|
: m_TargetPlatform.ToString();
|
||||||
}
|
}
|
||||||
if (header.m_Version >= SerializedFileFormatVersion.HasTypeTreeHashes)
|
if (header.m_Version >= SerializedFileFormatVersion.HasTypeTreeHashes)
|
||||||
{
|
{
|
||||||
|
@ -266,7 +266,7 @@ namespace AssetStudioGUI
|
|||||||
var typeMap = await Task.Run(() => BuildClassStructure());
|
var typeMap = await Task.Run(() => BuildClassStructure());
|
||||||
productName = string.IsNullOrEmpty(productName) ? "no productName" : productName;
|
productName = string.IsNullOrEmpty(productName) ? "no productName" : productName;
|
||||||
|
|
||||||
Text = $"{guiTitle} - {productName} - {assetsManager.assetsFileList[0].version} - {assetsManager.assetsFileList[0].m_TargetPlatform}";
|
Text = $"{guiTitle} - {productName} - {assetsManager.assetsFileList[0].version} - {assetsManager.assetsFileList[0].targetPlatformString}";
|
||||||
|
|
||||||
assetListView.VirtualListSize = visibleAssets.Count;
|
assetListView.VirtualListSize = visibleAssets.Count;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user