core: add changeRootPath for CConfig

This commit is contained in:
Vaxry 2025-11-27 15:46:35 +00:00
parent a318deec0c
commit 3d66ec7c29
Signed by: vaxry
GPG key ID: 665806380871D640
2 changed files with 11 additions and 0 deletions

View file

@ -441,6 +441,13 @@ namespace Hyprlang {
return result; return result;
} }
/*!
Change the root path of the config
\since 0.6.7
*/
void changeRootPath(const char* path);
private: private:
bool m_bCommenced = false; bool m_bCommenced = false;

View file

@ -931,6 +931,10 @@ CParseResult CConfig::parse() {
return fileParseResult; return fileParseResult;
} }
void CConfig::changeRootPath(const char* path) {
impl->path = path;
}
CParseResult CConfig::parseRawStream(const std::string& stream) { CParseResult CConfig::parseRawStream(const std::string& stream) {
CParseResult result; CParseResult result;