Skip to content
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

Il2CppClass inference from its Il2CppType #2

Open
just-ero opened this issue Oct 16, 2022 · 0 comments
Open

Il2CppClass inference from its Il2CppType #2

just-ero opened this issue Oct 16, 2022 · 0 comments
Assignees
Labels
area: unity help wanted Issue requires advanced knowledge. low priority Issue is of low priority.

Comments

@just-ero
Copy link
Owner

It is currently not possible to find the Il2CppClass from a FieldInfo's Il2CppType.

Getting the underlying TypeDefinition from an Il2CppType – much like getting the MonoClass from a MonoType – is currently not supported. The relevant pieces of the Il2CppType's data union are __klassIndex and typeHandle, with the latter being the more relevant one.
With it, it needs to be figured out how to get the offset of the TypeDefinition which corresponds to the Il2CppClass' index in the TypeDefinitionTable.

Some helpful code may be located at Perfare/Il2CppDumper.

@just-ero just-ero added area: unity help wanted Issue requires advanced knowledge. low priority Issue is of low priority. labels Oct 16, 2022
@just-ero just-ero self-assigned this Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: unity help wanted Issue requires advanced knowledge. low priority Issue is of low priority.
Projects
None yet
Development

No branches or pull requests

1 participant