aboutsummaryrefslogtreecommitdiff
path: root/zenserver/config.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-09-22 09:28:19 +0200
committerPer Larsson <[email protected]>2021-09-22 09:28:19 +0200
commita33fb96524b48f3d0636b157003a7f2b5f98b2a5 (patch)
tree8d39be86892ff8ed5f3d50db9a19ce123ddceb38 /zenserver/config.cpp
parentMerge branch 'main' of https://github.com/EpicGames/zen (diff)
downloadzen-a33fb96524b48f3d0636b157003a7f2b5f98b2a5.tar.xz
zen-a33fb96524b48f3d0636b157003a7f2b5f98b2a5.zip
Don't exit until any key pressed when showing help (tmp fix).
Diffstat (limited to 'zenserver/config.cpp')
-rw-r--r--zenserver/config.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/zenserver/config.cpp b/zenserver/config.cpp
index 164d2a792..af28168a5 100644
--- a/zenserver/config.cpp
+++ b/zenserver/config.cpp
@@ -17,6 +17,8 @@
#include <zencore/logging.h>
#include <sol/sol.hpp>
+#include <conio.h>
+
#if ZEN_PLATFORM_WINDOWS
// Used for getting My Documents for default data directory
@@ -219,7 +221,8 @@ ParseGlobalCliOptions(int argc, char* argv[], ZenServerOptions& GlobalOptions, Z
if (result.count("help"))
{
zen::logging::ConsoleLog().info("{}", options.help());
-
+ zen::logging::ConsoleLog().info("Press any key to exit!");
+ _getch();
exit(0);
}