GreenhouseConfigHolder saving/reloading rewrites #4

Closed
opened 2026-01-31 05:40:10 +00:00 by Cow · 1 comment
Owner

There are some weird cases where you do not want to reload the config, but wish to save it. Such as saving a toggle state outside the config through in-game means. There are also cases where it might be better to defer saving the config.

save - Saves the current config, deliberately not running any reload methods.
update - Updates the config, but does not save it. Triggers a reload.
write - Saves and updates the config. Pretty much what save was before.
reload - Same as before.

There are some weird cases where you do not want to reload the config, but wish to save it. Such as saving a toggle state outside the config through in-game means. There are also cases where it might be better to defer saving the config. ~~`save` - Saves the current config, deliberately not running any reload methods. `update` - Updates the config, but does not save it. Triggers a reload. `write` - Saves and updates the config. Pretty much what save was before. `reload` - Same as before.~~
Author
Owner

Talked to a friend in DMs. The above terms are too similar to one another. How about a simpler system?

save - Either rewrites a current in memory config to file, or writes and loads a new config into memory. New config param is optional.
reload - Reloads the config. Same as before.

Talked to a friend in DMs. The above terms are too similar to one another. How about a simpler system? `save` - Either rewrites a current in memory config to file, or writes and loads a new config into memory. New config param is optional. `reload` - Reloads the config. Same as before.
Cow referenced this issue from a commit 2026-02-01 02:50:57 +00:00
Cow referenced this issue from a commit 2026-02-01 02:57:42 +00:00
Cow closed this issue 2026-02-01 04:28:11 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Modding/greenhouse-config#4
No description provided.