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

Bug fix, customLoadedTriggers with preloaded mode #18

Merged

Conversation

rogerbarton
Copy link
Contributor

@rogerbarton rogerbarton commented Apr 24, 2020

  1. The loaded trigger is now called after all mocked methods have been loaded for preloaded mode. This allows using a native method inside the callback, such as a initialize function.

  2. Swapped ordering so UnityPluginLoad() (from LowLevelPluginManager.OnDllLoaded(dll)) is called before the trigger. This is unrelated to the bug but makes more sense.

The loaded trigger is now called after all mocked methods have been loaded for preloaded mode. This allows using a native method inside the callback, such as a native initialize function.
@mcpiroman
Copy link
Owner

One thing I'd like is to have that commented in the code, but otherwise yup, it makes sense to me.

@mcpiroman
Copy link
Owner

Oh well, I meant the comments in the actual new code, but that's also useful ;)

@mcpiroman
Copy link
Owner

Looks like some conflicts with comments (I can't merge that because that's your repo).

@rogerbarton
Copy link
Contributor Author

Yep im just resolving them right now

@mcpiroman mcpiroman merged commit edc68d8 into mcpiroman:master May 1, 2020
@rogerbarton rogerbarton deleted the fix-custom-triggers-preloaded branch May 1, 2020 19:26
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.

None yet

2 participants