knah / Il2CppAssemblyUnhollower

A tool to generate Managed->IL2CPP proxy assemblies
GNU Lesser General Public License v3.0
500 stars 87 forks source link

When generating field properties, types with same simple name from different assemblies produce overlapping field names #13

Closed knah closed 3 years ago

knah commented 3 years ago

Only obfuscated games are affected. Most likely this assembly/other assembly combination is required due to GetType check in unmanged name equality check failing on TypeDef/TypeRef difference. Sample generated code

g0dzcsgo commented 3 years ago

Same issue

kenx00x commented 3 years ago

same

g0dzcsgo commented 3 years ago

How would you go around this?

knah commented 3 years ago

As a temporary workaround you can use reflection to get the field you want.

g0dzcsgo commented 3 years ago

I can't get it to work with reflection, can you show an example?

g0dzcsgo commented 3 years ago

*Also do you got discord? So we could chat a bit quicker and not bumping this so much

Discord: cool#1337