-
Notifications
You must be signed in to change notification settings - Fork 37
feat: ✨ Added mod disabling #241
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
Conversation
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.
ty for the PR 👍
Just some questions and small style things.
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.
nice 👍
Ready to merge if you did a run test 👍 |
Ok, did a test run in Brotato with no errors, so it looks good to merge. |
Implements mod disabling at runtime, we expose
disable_mods
anddisable_mod
in the ModLoaderMod class that can be called by any mod, but it has to be noted that those methods should only be called when needed as they can cause the game to break if a specific mod has not implemented their_disable
method in the mod_main.gd script of their mod correctly.We also expose
remove_all_extensions_of_mod
in the _ModLoaderScriptExtension class that should be still handled with care by the mod developers and can be used to disable all the extensions of their mod for specific situations.Finally there we expose
get_mod_data_from_namespace
in the ModData class that enables us to retrieve the ModData of a mod from the provided mod_id.#240 is required before merging this one