Unsaved ConfigEntry #397
xKiraiChan
started this conversation in
BepInEx 6 proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The API for
ConfigEntry
is convenient because it has a hierarchical structure, an event for when its value is changed, metadata, and input validation.Unfortunately, it doesn't have an unsaved variant.
Due to this, I've had to write my own class that accomplishes the same thing as
ConfigEntry
but without saving.My idea is to create a class, possibly called
MemoryEntry
, that derives fromConfigEntryBase
as well.This would allow for a function to receive a
ConfigEntryBase
and not have to worry about its save state instead of having to have an override and separate implementation for an unsaved variant.A problem I see with my idea is that the configuration system is built around physical files on disk with subcategories and not just nestable categories
Beta Was this translation helpful? Give feedback.
All reactions