-
Notifications
You must be signed in to change notification settings - Fork 124
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
Add unload and load commands for plugins #836
base: main
Are you sure you want to change the base?
Conversation
if (args.ArgC() >= 2 && !strcmp(name.c_str(), args.Arg(1))) | ||
continue; | ||
|
||
if (plugin.Unload()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be wise to print if unloading fails, wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah it be wise to add a log call there
@catornot can you provide me with a protocol to test your change? |
whyrn everything should just work if you try using the this pr adds the ability to unload( reloading plugins isn't really useful on windows since it's too fast to replace the plugins and replacing them before reloading is not possible on windows which is why manual unload and loading is required. how |
this pr adds concommands to reload and unload plugins so that they be more easily reloaded on windows. windows will prevent the dll from being modified if it's loaded so it needs to be unload then loaded :P
also this already has #835