
[Enhancement]: Rework the Melon Preferences system
slxdy opened this issue ยท 0 comments
Describe the new feature or enhancement
Currently, all mod configs are stored in a single file. This can make it difficult to identify which section belongs to which mod. Next to that, mods can create multiple sections, which can lead to confusion.
My suggestion is to give each mod its own config file. Not only would this make it clearer for the user and the installer or third-party mod managers, but it would also allow for common mod settings.
Each mod config would contain common properties, such as disable
or disable-logs
, which would allow the user to change behavior of mods without moving files or writing any code.
To make it even easier for mod developers, we could implement Tomlet's serializer and deserializer, which would allow for creating properties through reflection, without the need to manually create each category and property through the MelonPrefs API.
Fixes #369