diff options
| author | Stefan Boberg <[email protected]> | 2026-04-02 17:31:56 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2026-04-02 17:31:56 +0200 |
| commit | e490bfe7b9c0f2986065a12281d29e5ab2e452f1 (patch) | |
| tree | 8b3bef1b0bc036675084e0060c1a6b8785ce429d /src/zenhorde/hordeclient.cpp | |
| parent | add [[nodiscard]] (diff) | |
| download | zen-sb/compute-oidc-auth.tar.xz zen-sb/compute-oidc-auth.zip | |
Expand environment variables in --data-dir and improve HordeAgentsb/compute-oidc-auth
- Add ExpandEnvironmentVariables() to zencore that substitutes %VAR%
references using GetEnvVariable(), leaving unknown vars unexpanded
- Expand env vars in --data-dir before resolving the absolute path
- Use %UE_HORDE_SHARED_DIR%\zen as default data-dir for Horde agents
- Store exit code and exception info on HordeAgent for caller access
- Take HordeConfig by value in HordeClient constructor
Diffstat (limited to 'src/zenhorde/hordeclient.cpp')
| -rw-r--r-- | src/zenhorde/hordeclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenhorde/hordeclient.cpp b/src/zenhorde/hordeclient.cpp index 00edc8f1c..da85e78ec 100644 --- a/src/zenhorde/hordeclient.cpp +++ b/src/zenhorde/hordeclient.cpp @@ -15,7 +15,7 @@ ZEN_THIRD_PARTY_INCLUDES_END namespace zen::horde { -HordeClient::HordeClient(const HordeConfig& Config) : m_Config(Config), m_Log(zen::logging::Get("horde.client")) +HordeClient::HordeClient(HordeConfig Config) : m_Config(std::move(Config)), m_Log("horde.client") { } |