aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenserver/config.cpp')
-rw-r--r--src/zenserver/config.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/zenserver/config.cpp b/src/zenserver/config.cpp
index e33b6caf3..ce1b21926 100644
--- a/src/zenserver/config.cpp
+++ b/src/zenserver/config.cpp
@@ -35,6 +35,8 @@ ZEN_THIRD_PARTY_INCLUDES_END
#if ZEN_PLATFORM_WINDOWS
+# include <zencore/windows.h>
+
// Used for getting My Documents for default data directory
# include <ShlObj.h>
# pragma comment(lib, "shell32.lib")
@@ -550,10 +552,13 @@ ParseConfigFile(const std::filesystem::path& Path,
void
ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions)
{
-#if ZEN_WITH_HTTPSYS
- const char* DefaultHttp = "httpsys";
-#else
const char* DefaultHttp = "asio";
+
+#if ZEN_WITH_HTTPSYS
+ if (!zen::windows::IsRunningOnWine())
+ {
+ DefaultHttp = "httpsys";
+ }
#endif
// Note to those adding future options; std::filesystem::path-type options