Skip to content

Commit 7f3153a

Browse files
committed
fix(TpkClassGenerator)!: map char to int instead of str
fixes: #344
1 parent fed3d11 commit 7f3153a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

UnityPy/classes/generated.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4250,7 +4250,7 @@ class BillboardAsset(NamedObject):
42504250

42514251
@unitypy_define
42524252
class BlobObject(NamedObject):
4253-
m_BlobData: List[str]
4253+
m_BlobData: List[int]
42544254
m_BlobTypeHash: int
42554255
m_Name: str
42564256
m_NestedBlobObjectReferenceOffsets: List[int]
@@ -4371,7 +4371,7 @@ class Font(NamedObject):
43714371
m_ConvertCase: int
43724372
m_DefaultMaterial: PPtr[Material]
43734373
m_DefaultStyle: int
4374-
m_FontData: List[str]
4374+
m_FontData: List[int]
43754375
m_FontNames: List[str]
43764376
m_FontSize: float
43774377
m_KerningValues: List[Tuple[Tuple[int, int], float]]
@@ -6817,12 +6817,12 @@ class AudioMixerConstant:
68176817
exposedParameterIndices: List[int]
68186818
exposedParameterNames: List[int]
68196819
groupGUIDs: List[GUID]
6820-
groupNameBuffer: List[str]
6820+
groupNameBuffer: List[int]
68216821
groups: List[GroupConstant]
68226822
numSideChainBuffers: int
6823-
pluginEffectNameBuffer: List[str]
6823+
pluginEffectNameBuffer: List[int]
68246824
snapshotGUIDs: List[GUID]
6825-
snapshotNameBuffer: List[str]
6825+
snapshotNameBuffer: List[int]
68266826
snapshots: List[SnapshotConstant]
68276827
groupConnections: Optional[List[GroupConnection]] = None
68286828

UnityPy/tools/TpkClassGenerator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
STRINGS = TPKTYPETREE.StringBuffer
1818

1919
BASE_TYPE_MAP = {
20-
"char": "str",
20+
"char": "int", # used for byte data
2121
"short": "int",
2222
"int": "int",
2323
"long long": "int",

0 commit comments

Comments
 (0)