first run presets

This commit is contained in:
madeline
2026-04-06 00:32:39 -07:00
parent c41ec46c71
commit 841b1bc563
8 changed files with 166 additions and 1 deletions
+7
View File
@@ -111,6 +111,13 @@ void Save();
*/
ConfigVarBase* GetConfigVar(std::string_view name);
/**
* \brief Returns true if no config file was found on the last LoadFromUserPreferences() call.
*
* For detect first run to prompt the user to choose a preset.
*/
bool WasConfigFileMissing();
template <ConfigValue T>
const ConfigImplBase* GetConfigImpl() {
static ConfigImpl<T> config;