mirror of
https://github.com/hyprwm/hyprlang.git
synced 2025-12-20 03:50:02 +01:00
core: add changeRootPath for CConfig
This commit is contained in:
parent
a318deec0c
commit
3d66ec7c29
2 changed files with 11 additions and 0 deletions
|
|
@ -441,6 +441,13 @@ namespace Hyprlang {
|
|||
return result;
|
||||
}
|
||||
|
||||
/*!
|
||||
Change the root path of the config
|
||||
|
||||
\since 0.6.7
|
||||
*/
|
||||
void changeRootPath(const char* path);
|
||||
|
||||
private:
|
||||
bool m_bCommenced = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -931,6 +931,10 @@ CParseResult CConfig::parse() {
|
|||
return fileParseResult;
|
||||
}
|
||||
|
||||
void CConfig::changeRootPath(const char* path) {
|
||||
impl->path = path;
|
||||
}
|
||||
|
||||
CParseResult CConfig::parseRawStream(const std::string& stream) {
|
||||
CParseResult result;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue