-
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
Create mod entry in enabledmods.json
if it doesn't exist
#410
Create mod entry in enabledmods.json
if it doesn't exist
#410
Conversation
While loading mods, if there's no related entry in enabledmods.json file, we create one with value=true, activating new mods by default.
will this write downloaded mods to the json as well? while we don't have autodownloading yet we do read the mod directory for downloaded mods atm, and i don't think we should ever write downloaded mods to the json |
This would be pretty pog ngl |
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.
Works in testing
I won't edit the labels for this PR, since I made it, but I'd say this is ready to be merged. :) |
missing comment in approving review
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.
re-doing the review
code still looks good and it matches its surrounding code
enabledmods.json
if it doesn't exist
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.
Code looks fine as far as I can tell. Primarily looked at control flow.
Currently, when you add a new mod to your
mods/
directory, when there's no associated entry in theenabledmods.json
file, it is considered enabled by default; mod entries are only written inenabledmods.json
when toggling them via the mods interface.In this pull request, I propose to create mod entries in
enabledmods.json
when detecting they don't exist.