SamboyCoding / Cpp2IL

Work-in-progress tool to reverse unity's IL2CPP toolchain.
MIT License
1.68k stars 197 forks source link

ASM to IL process gets the parameters wrong for non instance methods in Il2Cpp versions <= 24 #218

Closed lilmayofuksu closed 1 year ago

lilmayofuksu commented 1 year ago

In il2cpp versions <= 24, every generated method by il2cpp has a "__this" parameter. This was removed in the next versions however current version of Cpp2IL doesn't handle this scenario

So every call to static/extern function gets translated wrong. The code generated by il2cpp transpiler also comments the parameter as "static, unused". image image

nitrog0d commented 1 year ago

ayy lamo

lilmayofuksu commented 1 year ago

neteor