aboutsummaryrefslogtreecommitdiff
path: root/src/zenhorde/hordeclient.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-04-02 17:31:56 +0200
committerStefan Boberg <[email protected]>2026-04-02 17:31:56 +0200
commite490bfe7b9c0f2986065a12281d29e5ab2e452f1 (patch)
tree8b3bef1b0bc036675084e0060c1a6b8785ce429d /src/zenhorde/hordeclient.cpp
parentadd [[nodiscard]] (diff)
downloadzen-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.cpp2
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")
{
}