summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Root.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Root.cpp b/src/Root.cpp
index 37fbf125f..508d0a648 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -141,8 +141,14 @@ void cRoot::Start(std::unique_ptr<cSettingsRepositoryInterface> a_OverridesRepo)
LOG("Reading server config...");
+ m_SettingsFilename = "settings.ini";
+ if (a_OverridesRepo->HasValue("Server","ConfigFile"))
+ {
+ m_SettingsFilename = a_OverridesRepo->GetValue("Server","ConfigFile");
+ }
+
auto IniFile = cpp14::make_unique<cIniFile>();
- bool IsNewIniFile = !IniFile->ReadFile("settings.ini");
+ bool IsNewIniFile = !IniFile->ReadFile(m_SettingsFilename);
if (IsNewIniFile)
{