aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpnull.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-17 23:18:20 +0200
committerStefan Boberg <[email protected]>2021-09-17 23:18:48 +0200
commit0ee89539ead8631b02953ddf601770aefa557edb (patch)
treeef2e09d747bb3d7497507362bda560b905d478d6 /zenhttp/httpnull.cpp
parentAdded IsInteractiveSession() query to help identify if the process is running... (diff)
downloadzen-0ee89539ead8631b02953ddf601770aefa557edb.tar.xz
zen-0ee89539ead8631b02953ddf601770aefa557edb.zip
zenserver can now run as a Windows service. We'll still need to improve how data files are found as the current defaults are relative to the user directory which ends up being in the Windows folder when running as the local system user
Diffstat (limited to 'zenhttp/httpnull.cpp')
-rw-r--r--zenhttp/httpnull.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/zenhttp/httpnull.cpp b/zenhttp/httpnull.cpp
index 57cba13d3..e49051ac5 100644
--- a/zenhttp/httpnull.cpp
+++ b/zenhttp/httpnull.cpp
@@ -28,8 +28,10 @@ HttpNullServer::Initialize(int BasePort)
}
void
-HttpNullServer::Run(bool TestMode)
+HttpNullServer::Run(bool IsInteractiveSession)
{
+ const bool TestMode = !IsInteractiveSession;
+
if (TestMode == false)
{
zen::logging::ConsoleLog().info("Zen Server running (null HTTP). Press ESC or Q to quit");