Open sir0x1 opened 11 months ago
What was the use case for this change?
I forgott to fill the description sorry. Had a small discussion about this in the discord: injecting a class derived from an existing generic class, with a virtual method using the generic type as parameter currently doesn't work because assembly.Name.Name is set to "InjectedMonoTypes" by ClassInjector. Is there an easy way to get the System.Type of an injected Type? Il2CppClassPointerStore is only viable for System.Type -> ClassPtr at the moment.
The discrod link for reference: https://discord.com/channels/623153565053222947/985596870229385256/1146049966444384336
Updated the description
Injecting a class derived from an existing generic class with a virtual method using the generic type as parameter currently doesn't work.
I had to fix some void* handling for this sample to work as well.
Can be reprodused with this sample plugin:
Before:![grafik](https://github.com/BepInEx/Il2CppInterop/assets/3425560/6de33acd-da23-44be-9409-2a100927d063)
After:![grafik](https://github.com/BepInEx/Il2CppInterop/assets/3425560/b01cd8bd-babf-4903-b33e-9e066ad486ab)