This would allow for reset of settings as we know the default config is {modname}-default.toml, the default should be read only and any changes made in the GUI would generate {modname}-profile1.toml if it does not exist.
Vigilance-global should store the current config. If no config exists for the current mod add the mod default config to the file.
Goals
Below I have a constructed a possibility of how this can be achieved however feel free to alter it.
File structure
Vigilance-global.toml examle
This would allow for reset of settings as we know the default config is {modname}-default.toml, the default should be read only and any changes made in the GUI would generate {modname}-profile1.toml if it does not exist.
Vigilance-global should store the current config. If no config exists for the current mod add the mod default config to the file.
https://github.com/Sk1erLLC/Vigilance/blob/f9e04504c3b2e2ed4365f4015d65e5253c61dd8f/src/main/kotlin/club/sk1er/vigilance/gui/SettingsGui.kt#L161