forked from K0lb3/UnityPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTypeTreeHelper.h
More file actions
31 lines (28 loc) · 760 Bytes
/
TypeTreeHelper.h
File metadata and controls
31 lines (28 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#define PY_SSIZE_T_CLEAN
#pragma once
#include <Python.h>
#include "structmember.h"
typedef struct TypeTreeNodeObject{
PyObject_HEAD
short m_Version;
unsigned char m_Level;
int m_TypeFlags;
int m_ByteSize;
int m_Index;
int m_MetaFlag;
char *m_Type;
char *m_Name;
//unsigned short children_count;
//struct TypeTreeNodeObject **children;
// UnityFS
unsigned int m_TypeStrOffset;
unsigned int m_NameStrOffset;
// UnityFS - version >= 19
unsigned long long m_RefTypeHash;
// UnityRaw - versin = 2
int m_VariableCount;
// helper fields
unsigned int typehash;
} TypeTreeNodeObject;
int add_typetreenode_to_module(PyObject *m);
PyObject* read_typetree(PyObject *self, PyObject *args);