Skip to content

Renamed method->declaring_type to method->klass #731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions mono/mini/il2cpp-stubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ Il2CppMonoObject* il2cpp_mono_runtime_try_invoke(Il2CppMonoMethod* method, void*
{
error_init(error);

if (((MethodInfo*)method)->declaring_type->valuetype)
if (((MethodInfo*)method)->klass->valuetype)
obj = static_cast<Il2CppObject*>(obj) - 1;

return (Il2CppMonoObject*)il2cpp::vm::Runtime::Invoke((MethodInfo*)method, obj, params, (Il2CppException**)exc);
Expand Down Expand Up @@ -1423,7 +1423,7 @@ gboolean il2cpp_mono_methods_match(Il2CppMonoMethod* left, Il2CppMonoMethod* rig
if (leftMethod->is_inflated && !leftMethod->is_generic && leftMethod->genericMethod->methodDefinition == rightMethod)
return TRUE;
if (leftMethod->is_generic && rightMethod->is_inflated && rightMethod->methodPointer &&
leftMethod->declaring_type == rightMethod->declaring_type &&
leftMethod->klass == rightMethod->klass &&
strcmp(leftMethod->name, rightMethod->name) == 0)
{
if (leftMethod->parameters_count != rightMethod->parameters_count)
Expand Down Expand Up @@ -1592,7 +1592,7 @@ uint32_t il2cpp_method_get_flags_no_iflags(const Il2CppMonoMethod * method)
bool il2cpp_method_is_string_ctor(const Il2CppMonoMethod * method)
{
MethodInfo* methodInfo = (MethodInfo*)method;
return methodInfo->declaring_type == il2cpp_defaults.string_class && !strcmp (methodInfo->name, ".ctor");
return methodInfo->klass == il2cpp_defaults.string_class && !strcmp (methodInfo->name, ".ctor");
}

Il2CppMonoClass* il2cpp_defaults_void_class()
Expand Down