main: move more tiny objects out of main.cpp

This commit is contained in:
2023-02-18 17:15:21 +01:00
parent 2848c8ad12
commit 1494dd6405
11 changed files with 321 additions and 310 deletions

View File

@@ -80,7 +80,18 @@ ConfigService::onStart()
if (strlen(m_config.data.loadedProfile) == 0) {
strcpy(m_config.data.loadedProfile, "default");
}
loadProfile(m_config.data.loadedProfile);
if (m_overrideProfile != nullptr) {
loadProfile(m_overrideProfile);
} else {
loadProfile(m_config.data.loadedProfile);
}
}
void
ConfigService::overrideProfile(const char* profileName)
{
m_overrideProfile = profileName;
}
void