main: move more tiny objects out of main.cpp
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user