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

Make it load dynamic and not crash #1

Open
wants to merge 9 commits into
base: godot4
Choose a base branch
from

Conversation

Ughuuu
Copy link

@Ughuuu Ughuuu commented Jan 21, 2025

Right now it will crash at runtime unless you have the dll. With this change, it will work and not crash, because:

It adds a middleware that implements the functions.
At constructor time, it loads the dll, if its loaded, it loads the functions
When someone calls a function, it uses the middleware, and if the function is loaded, it calls that.
This way it won't crash at runtime, and it will run the same way as before.

Thanks to @fwsGonzo for the idea and how to do this middleware implementation.

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