66 lines
2.6 KiB
C++
66 lines
2.6 KiB
C++
#pragma once
|
|
#include "pch.h"
|
|
|
|
//APIs Offsets Should Be Changed Every Update!
|
|
namespace il2CppOffsets {
|
|
const uintptr_t gIBaseAddress = reinterpret_cast<const uintptr_t>(GetModuleHandleA("GenshinImpact.exe"));
|
|
constexpr int GetTypeInfoFromTypeDefinitionIndex = 0x5391B0;
|
|
//easily gotten by searching this string " because generic types cannot have explicit layout."
|
|
namespace Class {
|
|
constexpr int il2cpp_type_get_name = 0x4C2710;
|
|
constexpr int il2cpp_class_get_namespace = 0x4C1900;
|
|
//string: " %s%s%s must be instantiated using the ScriptableObject.CreateInstance method instead of new %s."
|
|
constexpr int il2cpp_class_get_name = 0x4C18F0;
|
|
//string: " %s%s%s must be instantiated using the ScriptableObject.CreateInstance method instead of new %s."
|
|
constexpr int il2cpp_class_get_methods = 0x4C18B0;
|
|
constexpr int FromIl2CppType = 0x5299B0;
|
|
constexpr int il2cpp_class_from_name = 0x4C1800;
|
|
constexpr int il2cpp_class_get_method_from_name = 0x4C18D0;
|
|
constexpr int il2cpp_class_get_fields = 0x4C1810;
|
|
|
|
constexpr int il2cpp_class_get_flags = 0x4C19A0;
|
|
constexpr int il2cpp_class_get_type = 0x4C1A00;
|
|
constexpr int il2cpp_class_get_parent = 0x4C1940;
|
|
constexpr int il2cpp_class_is_enum = 0x4C1AD0;
|
|
}
|
|
namespace Methods {
|
|
const int il2cpp_method_get_name = 0x4C2150;
|
|
const int il2cpp_method_get_return_type = 0x4C2130;
|
|
const int il2cpp_method_get_param_count = 0x4C21A0;
|
|
const int il2cpp_method_get_param = 0x4C21B0;
|
|
const int il2cpp_method_get_param_name = 0x4C22B0;
|
|
|
|
constexpr int method_pointer = 0x8;
|
|
constexpr int il2cpp_method_get_flags = 0x2A;
|
|
}
|
|
namespace GC {
|
|
constexpr int il2cpp_gc_disable = 0x4C1EA0;
|
|
}
|
|
namespace Domain {
|
|
constexpr int il2cpp_domain_get = 0x4C1B30;
|
|
constexpr int il2cpp_domain_get_assemblies = 0x0;
|
|
constexpr int il2cpp_domain_assembly_open = 0x4C1BC0;
|
|
constexpr int il2cpp_assembly_get_image = 0x4C1770;
|
|
|
|
}
|
|
namespace Field {
|
|
constexpr int il2cpp_field_get_name = 0x4C1C50;
|
|
constexpr int il2cpp_field_get_type = 0x4C1CA0;
|
|
constexpr int il2cpp_field_get_flags = 0x4C1C60;
|
|
constexpr int il2cpp_field_get_offset = 0x4C1C90;
|
|
constexpr int il2cpp_field_get_token = 0x4C1C80;
|
|
constexpr int il2cpp_field_static_get_value = 0x4C1E30;
|
|
}
|
|
namespace RuntimeStuff {
|
|
constexpr int il2cpp_runtime_class_init = 0x4C8DF0;
|
|
constexpr int il2cpp_vm_class_init = 0x52ED90;
|
|
constexpr int il2cpp_thread_attach = 0x4C26A0;
|
|
constexpr int il2cpp_vm_array_new = 0x4C1720;
|
|
constexpr int il2cpp_object_new = 0x545A00;
|
|
constexpr int il2cpp_runtime_invoke = 0x4C23C0;
|
|
}
|
|
namespace Type {
|
|
constexpr int class_is_valuetype = 0x4C1990;
|
|
}
|
|
|
|
}
|