mirror of
https://git.chinosk6.cn/chinosk/gkms-local.git
synced 2026-02-04 09:04:52 +00:00
fixed LoginAsIOS not working in 1.8.0
This commit is contained in:
@@ -205,6 +205,15 @@ namespace Il2cppUtils {
|
||||
return UnityResolve::Invoke<MethodInfo*>("il2cpp_class_get_method_from_name", klass, name, argsCount);
|
||||
}
|
||||
|
||||
static uintptr_t il2cpp_class_get_method_pointer_from_name(void* klass, const char* name, int argsCount) {
|
||||
auto findKlass = il2cpp_class_get_method_from_name(klass, name, argsCount);
|
||||
if (findKlass) {
|
||||
return findKlass->methodPointer;
|
||||
}
|
||||
Log::ErrorFmt("method: %s not found", name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void* find_nested_class(void* klass, std::predicate<void*> auto&& predicate) {
|
||||
void* iter{};
|
||||
while (const auto curNestedClass = UnityResolve::Invoke<void*>("il2cpp_class_get_nested_types", klass, &iter))
|
||||
|
||||
Reference in New Issue
Block a user