Skip to content

Commit e6254f4

Browse files
authored
Merge pull request #2770 from PeaceBeUponYou/master
MONO: Get Parameters fix for Il2cpp
2 parents 9a3ade0 + e802e8f commit e6254f4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Cheat Engine/MonoDataCollector/MonoDataCollector/PipeServer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ void CPipeServer::InitMono()
521521

522522
mono_method_get_name = (MONO_METHOD_GET_NAME)GetProcAddress(hMono, "il2cpp_method_get_name");
523523
mono_method_get_full_name = (MONO_METHOD_GET_FULL_NAME)GetProcAddress(hMono, "il2cpp_method_get_full_name");
524+
mono_method_get_full_name = mono_method_get_full_name ? mono_method_get_full_name : (MONO_METHOD_GET_FULL_NAME)GetProcAddress(hMono, "mono_method_full_name");//7FF91A729E20 - GameAssembly.mono_method_full_name
524525
mono_method_get_full_name = mono_method_get_full_name ? mono_method_get_full_name : (MONO_METHOD_GET_FULL_NAME)GetProcAddress(hMono, "mono_method_get_full_name");
525526
mono_method_get_class = (MONO_METHOD_GET_CLASS)GetProcAddress(hMono, "il2cpp_method_get_class");
526527
mono_method_get_header = (MONO_METHOD_GET_HEADER)GetProcAddress(hMono, "il2cpp_method_get_header");
@@ -1697,7 +1698,7 @@ void CPipeServer::GetMethodParameters()
16971698
for (i = 0; i < paramcount; i++)
16981699
{
16991700
void* paramtype = il2cpp_method_get_param(method, i);
1700-
1701+
WriteQword((UINT64)paramtype);
17011702
if (paramtype)
17021703
WriteDword(mono_type_get_type(paramtype));
17031704
else

0 commit comments

Comments
 (0)