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

Swap to using nautilus's own config systems #580

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

EldritchCarMaker
Copy link
Contributor

This system is more expandable, gives more examples to users looking to use the system themselves, and you should always use your own API

Changes made in this pull request

Nautilus previously used its own file IO for various configuration options, this did nothing but obscure the codebase and have repeated code in multiple places, especially as they didn't all use the same system. I've left this intact for the various caches (craft tree cache, equipment type cache, techtype cache, etc) as these are not "configuration" options per-se but I wouldn't be against moving these into the configuration system as well for consolidation (or another consolidated json system, distinct from the config) I have also left the heading_states file alone, for the same reason, although I would also consider merging that into the config

Breaking changes

Should be none, so long as the change works and mods don't do anything stupid by trying to mess with the config themselves

Tested in subnautica, not below zero

Changes should be internal enough to not matter, but it still needs to get rudimentary bz testing. Testing in sn1 could also be more extensive, especially regarding the "Enable mod databank entries" option as I truly have no idea what it's meant to do

Before merging

Test in BZ, and look over the "Enable mod databank entries" because it currently does literally nothing. If it has a use, let me know what it is and write up a tooltip for it. If it doesn't, we need to remove it instead. From a cursory glance at it before this overhaul, it didn't do anything in the past either.

This system is more expandable, gives more examples to users looking to use the system themselves, and you should always use your own API
Probably not ideal but I don't feel like rummaging through the attributes code to grab a reference to the ModOptions manually, and this only runs once per session anyway so who cares
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