diff options
| author | Stefan Boberg <[email protected]> | 2021-09-17 23:18:20 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-17 23:18:48 +0200 |
| commit | 0ee89539ead8631b02953ddf601770aefa557edb (patch) | |
| tree | ef2e09d747bb3d7497507362bda560b905d478d6 /zenhttp/httpnull.cpp | |
| parent | Added IsInteractiveSession() query to help identify if the process is running... (diff) | |
| download | zen-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.cpp | 4 |
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"); |