BGS-Tally
BGS-Tally copied to clipboard
Implement unique prefix on config values
Currently all config values are prefixed with X with isn't particularly unique or identifiable.
EDMC docs recommend that all plug-in config values are prefixed with a unique identifier, so implement a one-off migration to store all config values prefixed with BGST_.
On load logic:
- Check for existence of
BGST_value first. - If present, use it. If not present, look for equivalent
Xvalue. - If
Xvalue present, use it and delete it. If not present, use default value.
On save logic:
- Save to new
BGST_value.
Config entries to handle:
- [ ]
XShowZeroActivity - [ ]
XAbbreviate - [ ]
XSecondaryInf - [ ]
XDiscordUsername - [ ]
XEnableOverlay - [ ]
XDiscordWebhook - [ ]
XDiscordTWWebhook - [ ]
XCurrentSystemID - [ ]
XStationFaction - [ ]
XStationType