Skip to content

Conversation

@slidedrum
Copy link
Contributor

In some situations AddTypeToLookup would fail with nested classes, it would not get the full name properly.

I added a ClassInjector.GetTypeName method very similar to ClassInjector.GetIl2CppTypeFullName that accepts a enum for what parts of the name you want. Might not be the cleanest way to do it, especially considering it's only used in one place atm. But could be useful. Could also add that enum field to GetIl2CppTypeFullName, though not sure where you'd need that.

These two changes together make it so that it doesn't try to double up on lookup keys in some cases with nested classes.

@slidedrum
Copy link
Contributor Author

slidedrum commented Oct 1, 2025

This causes problems elsewhere, I need to find where it uses those keys and update that too. And maybe something else? I should have checked more than just if I got the "successfully registered" text.

EDIT, maybe it does work and it's my code that broke? I should look at this again when I have more sleep. I'm very confused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant