aboutsummaryrefslogtreecommitdiff
path: root/zenserver/config.cpp
diff options
context:
space:
mode:
authorJoe Kirchoff <[email protected]>2022-03-22 11:47:38 -0700
committerGitHub <[email protected]>2022-03-22 11:47:38 -0700
commitcc5adf4cb79c92993fabfe09e75dfadb7d4c9665 (patch)
tree4ba0a18f68e39685fa784d872bbb4bb9ba2b6fd7 /zenserver/config.cpp
parentmove workthreadpool to zencore (#63) (diff)
downloadzen-cc5adf4cb79c92993fabfe09e75dfadb7d4c9665.tar.xz
zen-cc5adf4cb79c92993fabfe09e75dfadb7d4c9665.zip
Enable Horde compute code on Linux & Mac (#61)
Diffstat (limited to 'zenserver/config.cpp')
-rw-r--r--zenserver/config.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/zenserver/config.cpp b/zenserver/config.cpp
index adb079d83..b7fc18b4e 100644
--- a/zenserver/config.cpp
+++ b/zenserver/config.cpp
@@ -652,6 +652,11 @@ ParseConfigFile(const std::filesystem::path& Path, ZenServerOptions& ServerOptio
}
}
+ if (sol::optional<sol::table> ExecConfig = lua["exec"])
+ {
+ ServerOptions.ExecServiceEnabled = ExecConfig->get_or("enable", ServerOptions.ExecServiceEnabled);
+ }
+
if (sol::optional<sol::table> ComputeConfig = lua["compute"])
{
ServerOptions.ComputeServiceEnabled = ComputeConfig->get_or("enable", ServerOptions.ComputeServiceEnabled);