GreenhouseConfigHolder saving/reloading rewrites #4
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Port
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Modding/greenhouse-config#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.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.