fixed LoginAsIOS not working in 1.8.0

This commit is contained in:
chinosk
2025-01-20 20:13:07 +00:00
parent 60c846b2f0
commit 0218543935
3 changed files with 59 additions and 3 deletions

View File

@@ -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))