Skip to content

Commit

Permalink
config: add nested source parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricekraus committed Feb 21, 2024
1 parent 66af704 commit c3198d3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/config/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,15 @@ std::optional<std::string> CConfigManager::handleSource(const std::string& comma
return "source file " + value + " doesn't exist!";
}

// allow for nested config parsing
auto backupConfigPath = configCurrentPath;
configCurrentPath = value;

m_config.parseFile(value.c_str());

configCurrentPath = backupConfigPath;


}

return {};
Expand Down

0 comments on commit c3198d3

Please sign in to comment.