Add checks to prevent files being saved before being fully read.

This commit is contained in:
AdenKoperczak 2025-01-29 11:04:17 -05:00
parent f3c846f0b1
commit bc79ed11a3
5 changed files with 31 additions and 1 deletions

View file

@ -67,9 +67,10 @@ void SettingsManager::Initialize()
}
p->settingsPath_ = appDataPath + "/settings.json";
p->initialized_ = true;
ReadSettings(p->settingsPath_);
p->initialized_ = true;
p->ValidateSettings();
}