Skip to content

Commit

Permalink
不再需要指定Unity版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
Perfare committed Mar 22, 2022
1 parent b4c14cd commit 5ff73ad
Show file tree
Hide file tree
Showing 66 changed files with 354 additions and 50,499 deletions.
36 changes: 0 additions & 36 deletions module/src/main/cpp/game.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,5 @@
#define RIRU_IL2CPPDUMPER_GAME_H

#define GamePackageName "com.game.packagename"
#define UnityVersion 2021.2.0f1

// 2018.3.0f2 and up enable it
#define VersionAbove2018dot3

// UnityVersion Compatible list
// 5.3.0f4 | 5.3.0f4 - 5.3.1f1 | v16
// 5.3.2f1 | 5.3.2f1 | v19
// 5.3.3f1 | 5.3.3f1 - 5.3.4f1 | v20
// 5.3.5f1 | 5.3.5f1 | v21
// 5.3.6f1 | 5.3.6f1 | v21
// 5.3.7f1 | 5.3.7f1 - 5.3.8f2 | v21
// 5.4.0f3 | 5.4.0f3 | v21
// 5.4.1f1 | 5.4.1f1 - 5.4.3f1 | v21
// 5.4.4f1 | 5.4.4f1 - 5.4.6f3 | v21
// 5.5.0f3 | 5.5.0f3 | v22
// 5.5.1f1 | 5.5.1f1 - 5.5.6f1 | v22
// 5.6.0f3 | 5.6.0f3 - 5.6.7f1 | v23
// 2017.1.0f3 | 2017.1.0f3 - 2017.1.2f1 | v24
// 2017.1.3f1 | 2017.1.3f1 - 2017.1.5f1 | v24
// 2017.2.0f3 | 2017.2.0f3 | v24
// 2017.2.1f1 | 2017.2.1f1 - 2017.4.40f1 | v24
// 2018.1.0f2 | 2018.1.0f2 - 2018.1.9f2 | v24
// 2018.2.0f2 | 2018.2.0f2 - 2018.2.21f1 | v24
// 2018.3.0f2 | 2018.3.0f2 - 2018.3.7f1 | v24.1
// 2018.3.8f1 | 2018.3.8f1 - 2018.4.36f1 | v24.1
// 2019.1.0f2 | 2019.1.0f2 - 2019.2.21f1 | v24.2
// 2019.3.0f6 | 2019.3.0f6 - 2019.3.6f1 | v24.2
// 2019.3.7f1 | 2019.3.7f1 - 2019.4.14f1 | v24.3
// 2019.4.15f1 | 2019.4.15f1 - 2019.4.20f1 | v24.4
// 2019.4.21f1 | 2019.4.21f1 - 2019.4.36f1 | v24.5
// 2020.1.0f1 | 2020.1.0f1 - 2020.1.10f1 | v24.3
// 2020.1.11f1 | 2020.1.11f1 - 2020.1.17f1 | v24.4
// 2020.2.0f1 | 2020.2.0f1 - 2020.2.3f1 | v27
// 2020.2.4f1 | 2020.2.4f1 - 2020.3.31f1 | v27.1
// 2021.1.0f1 | 2021.1.0f1 - 2021.1.28f1 | v27.2
// 2021.2.0f1 | 2021.2.0f1 ~ | v29
#endif //RIRU_IL2CPPDUMPER_GAME_H
File renamed without changes.
143 changes: 143 additions & 0 deletions module/src/main/cpp/il2cpp-class.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
typedef uint16_t Il2CppChar;
typedef uintptr_t il2cpp_array_size_t;
typedef int32_t TypeDefinitionIndex;
typedef int32_t GenericParameterIndex;
typedef char Il2CppNativeChar;

typedef struct Il2CppMemoryCallbacks Il2CppMemoryCallbacks;
typedef struct Il2CppImage Il2CppImage;
typedef struct Il2CppClass Il2CppClass;
typedef struct Il2CppArrayBounds Il2CppArrayBounds;
typedef struct Il2CppAssembly Il2CppAssembly;
typedef struct Il2CppArrayType Il2CppArrayType;
typedef struct Il2CppGenericClass Il2CppGenericClass;
typedef struct Il2CppReflectionType Il2CppReflectionType;
typedef struct MonitorData MonitorData;
typedef Il2CppClass Il2CppVTable;
typedef struct EventInfo EventInfo;
typedef struct FieldInfo FieldInfo;
typedef struct PropertyInfo PropertyInfo;
typedef struct Il2CppDomain Il2CppDomain;
typedef struct Il2CppException Il2CppException;
typedef struct Il2CppObject Il2CppObject;
typedef struct Il2CppReflectionMethod Il2CppReflectionMethod;
typedef struct Il2CppString Il2CppString;
typedef struct Il2CppThread Il2CppThread;
typedef struct Il2CppStackFrameInfo Il2CppStackFrameInfo;
typedef struct Il2CppManagedMemorySnapshot Il2CppManagedMemorySnapshot;
typedef struct Il2CppDebuggerTransport Il2CppDebuggerTransport;
typedef struct Il2CppMethodDebugInfo Il2CppMethodDebugInfo;
typedef struct Il2CppCustomAttrInfo Il2CppCustomAttrInfo;
typedef const struct ___Il2CppMetadataTypeHandle *Il2CppMetadataTypeHandle;
typedef const struct ___Il2CppMetadataGenericParameterHandle *Il2CppMetadataGenericParameterHandle;

typedef void (*Il2CppMethodPointer)();

typedef void (*il2cpp_register_object_callback)(Il2CppObject **arr, int size, void *userdata);

typedef void *(*il2cpp_liveness_reallocate_callback)(void *ptr, size_t size, void *userdata);

typedef void (*Il2CppFrameWalkFunc)(const Il2CppStackFrameInfo *info, void *user_data);

typedef size_t(*Il2CppBacktraceFunc)(Il2CppMethodPointer *buffer, size_t maxSize);

typedef const Il2CppNativeChar *(*Il2CppSetFindPlugInCallback)(const Il2CppNativeChar *);

typedef void (*Il2CppLogCallback)(const char *);

typedef enum {
IL2CPP_UNHANDLED_POLICY_LEGACY,
IL2CPP_UNHANDLED_POLICY_CURRENT
} Il2CppRuntimeUnhandledExceptionPolicy;

typedef enum {
IL2CPP_GC_MODE_DISABLED = 0,
IL2CPP_GC_MODE_ENABLED = 1,
IL2CPP_GC_MODE_MANUAL = 2
} Il2CppGCMode;

typedef enum Il2CppStat {
IL2CPP_STAT_NEW_OBJECT_COUNT,
IL2CPP_STAT_INITIALIZED_CLASS_COUNT,
IL2CPP_STAT_METHOD_COUNT,
IL2CPP_STAT_CLASS_STATIC_DATA_SIZE,
IL2CPP_STAT_GENERIC_INSTANCE_COUNT,
IL2CPP_STAT_GENERIC_CLASS_COUNT,
IL2CPP_STAT_INFLATED_METHOD_COUNT,
IL2CPP_STAT_INFLATED_TYPE_COUNT,
} Il2CppStat;

typedef enum Il2CppTypeEnum {
IL2CPP_TYPE_END = 0x00,
IL2CPP_TYPE_VOID = 0x01,
IL2CPP_TYPE_BOOLEAN = 0x02,
IL2CPP_TYPE_CHAR = 0x03,
IL2CPP_TYPE_I1 = 0x04,
IL2CPP_TYPE_U1 = 0x05,
IL2CPP_TYPE_I2 = 0x06,
IL2CPP_TYPE_U2 = 0x07,
IL2CPP_TYPE_I4 = 0x08,
IL2CPP_TYPE_U4 = 0x09,
IL2CPP_TYPE_I8 = 0x0a,
IL2CPP_TYPE_U8 = 0x0b,
IL2CPP_TYPE_R4 = 0x0c,
IL2CPP_TYPE_R8 = 0x0d,
IL2CPP_TYPE_STRING = 0x0e,
IL2CPP_TYPE_PTR = 0x0f,
IL2CPP_TYPE_BYREF = 0x10,
IL2CPP_TYPE_VALUETYPE = 0x11,
IL2CPP_TYPE_CLASS = 0x12,
IL2CPP_TYPE_VAR = 0x13,
IL2CPP_TYPE_ARRAY = 0x14,
IL2CPP_TYPE_GENERICINST = 0x15,
IL2CPP_TYPE_TYPEDBYREF = 0x16,
IL2CPP_TYPE_I = 0x18,
IL2CPP_TYPE_U = 0x19,
IL2CPP_TYPE_FNPTR = 0x1b,
IL2CPP_TYPE_OBJECT = 0x1c,
IL2CPP_TYPE_SZARRAY = 0x1d,
IL2CPP_TYPE_MVAR = 0x1e,
IL2CPP_TYPE_CMOD_REQD = 0x1f,
IL2CPP_TYPE_CMOD_OPT = 0x20,
IL2CPP_TYPE_INTERNAL = 0x21,
IL2CPP_TYPE_MODIFIER = 0x40,
IL2CPP_TYPE_SENTINEL = 0x41,
IL2CPP_TYPE_PINNED = 0x45,
IL2CPP_TYPE_ENUM = 0x55,
IL2CPP_TYPE_IL2CPP_TYPE_INDEX = 0xff
} Il2CppTypeEnum;

typedef struct Il2CppType {
union {
void *dummy;
TypeDefinitionIndex klassIndex;
const Il2CppType *type;
Il2CppArrayType *array;
GenericParameterIndex genericParameterIndex;
Il2CppGenericClass *generic_class;
} data;
unsigned int attrs: 16;
Il2CppTypeEnum type: 8;
unsigned int num_mods: 6;
unsigned int byref: 1;
unsigned int pinned: 1;
} Il2CppType;

typedef struct MethodInfo {
Il2CppMethodPointer methodPointer;
} MethodInfo;

typedef struct Il2CppObject {
union {
Il2CppClass *klass;
Il2CppVTable *vtable;
};
MonitorData *monitor;
} Il2CppObject;

typedef struct Il2CppArray {
Il2CppObject obj;
Il2CppArrayBounds *bounds;
il2cpp_array_size_t max_length;
void *vector[32];
} Il2CppArray;
Loading

0 comments on commit 5ff73ad

Please sign in to comment.