From e490bfe7b9c0f2986065a12281d29e5ab2e452f1 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 2 Apr 2026 17:31:56 +0200 Subject: Expand environment variables in --data-dir and improve HordeAgent - 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 --- src/zenhorde/hordeclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zenhorde/hordeclient.cpp') 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") { } -- cgit v1.2.3