-
Notifications
You must be signed in to change notification settings - Fork 99
/
il2cpp_utils.h
35 lines (22 loc) · 1022 Bytes
/
il2cpp_utils.h
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
32
33
34
35
#pragma once
#include "stdafx.h"
#include "il2cpp.h"
#include <map>
extern Il2CppGlobalMetadataHeader* pMetadataHdr;
extern uint32_t uiImageCount;
extern uint32_t uiNumTypes;
extern Il2CppImage* pImageTable;
extern Il2CppCodeRegistration* pCodeRegistration;
extern Il2CppMetadataRegistration* pMetadataRegistration;
char* GetString(StringIndex idx);
Il2CppMethodDefinition* GetMethodDefinition(MethodIndex idx);
Il2CppTypeDefinition* GetTypeDefFromIndex(TypeDefinitionIndex idx);
Il2CppTypeDefinition* GetTypeDefFromTypeIndex(TypeIndex idx);
Il2CppFieldDefinition* GetFieldDefFromIndex(FieldIndex idx);
Il2CppParameterDefinition* GetParameterFromIndex(ParameterIndex idx);
Il2CppParameterDefaultValue* GetParameterDefaultFromIndex(ParameterIndex idx);
Il2CppType* GetTypeFromTypeIndex(TypeIndex idx);
Il2CppFieldDefaultValue* GetFieldDefaultFromIndex(FieldIndex idx);
char* GetDefaultValueFromIndex(DefaultValueDataIndex idx);
int32_t GetFieldOffsetFromIndex(FieldIndex idx);
void LoadMetadata(char* szFile);