-
Notifications
You must be signed in to change notification settings - Fork 7
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
Use Cecil on Unhollowed assemblies for interface wrappings #28
Comments
Besides naming convention, is there another way to determine if a class in the unhollowed assemblies is an interface and should be included in the wrapper? Briefly looking through the assemblies, they all inherit Il2CppObjectBase. |
Also, what would be the advantage of Cecil vs using reflection to load the assembly and reading through the classes? I don't have experience with Cecil so just wanted some insight about it. |
That's a really good point, I keep forgetting unhollower strips the interface flag from the type. I might PR something into unhollower to add an attribute to specify that a class is an interface proxy... or we just use Il2CppDumper |
We can accomplish the same thing with both methods, however Cecil doesn't require us loading the assemblies into the AppDomain and we can just analyze them. |
The current system uses a simple json file and outputs the strings fed to it. A much better solution would be to use Cecil (during build) on the unhollowed assemblies and have a much cleaner interface wrapper.
The text was updated successfully, but these errors were encountered: