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

Suggestion: Add way to reload config file. #6

Open
art0007i opened this issue May 30, 2024 · 1 comment
Open

Suggestion: Add way to reload config file. #6

art0007i opened this issue May 30, 2024 · 1 comment

Comments

@art0007i
Copy link
Contributor

sometimes I want to modify configs using the text file in rml_config, but I would need to restart my game.

If there was a button that said "Reload from file" next to "Save settings" and it would just reload the json from disk it would be super useful for me.

I don't know if RML supports this kind of thing easily but if not I can probably look into it myself

@badhaloninja
Copy link
Owner

From a quick glance, looks like it would need to call ModConfiguration.LoadConfigForMod(ResoniteMod mod) which is an internal member,
However this would create a new ModConfiguration object instead of updating the existing one, which could cause problems for events and other things

This would probably require reimplementing some of this method our selves, or iterating over the new object and updating the changed keys

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

No branches or pull requests

2 participants