sneakyevil / IL2CPP_Resolver

A run-time API resolver for IL2CPP Unity.
https://sneakyevil.gitbook.io/il2cpp-resolver/
The Unlicense
362 stars 67 forks source link

86 Crashes #4

Closed xo1337 closed 2 years ago

xo1337 commented 2 years ago

Hey there, this project is pretty amazing (great work on it!), I've used this on many il2cpp game then tried using it on BLOCKPOST (x86 il2cpp), and when calling the initialize function i get a crash. So i went to go change the calling convention from __fastcall to __cdecl and it seemed to fix the crash. But then i am not able to get the camera main or use any other functions. Any ideas?

sneakyevil commented 2 years ago

Hey,

Did you change the calling convention for IL2CPP & Unity funcs?

https://github.com/sneakyevilSK/IL2CPP_Resolver/blob/main/Defines.hpp#L32 https://github.com/sneakyevilSK/IL2CPP_Resolver/blob/main/Unity/Defines.hpp#L3

Also you should step through the init func and check if exports are even found correctly.

sneakyevil commented 2 years ago

Closing this as no comment after 20 days.