Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/server/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/server/main.cpp')
-rw-r--r--source/server/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/server/main.cpp b/source/server/main.cpp
index ac40524..3bfb197 100644
--- a/source/server/main.cpp
+++ b/source/server/main.cpp
@@ -12,6 +12,10 @@
using namespace Star;
+#if defined STAR_SYSTEM_WINDOWS
+#include <windows.h>
+#endif
+
Json const AdditionalDefaultConfiguration = Json::parseJson(R"JSON(
{
"configurationVersion" : {
@@ -35,6 +39,10 @@ Json const AdditionalDefaultConfiguration = Json::parseJson(R"JSON(
int main(int argc, char** argv) {
try {
+ #if defined STAR_SYSTEM_WINDOWS
+ unsigned long exceptionStackSize = 16384;
+ SetThreadStackGuarantee(&exceptionStackSize);
+ #endif
RootLoader rootLoader({{}, AdditionalDefaultConfiguration, String("starbound_server.log"), LogLevel::Info, false, String("starbound_server.config")});
RootUPtr root = rootLoader.commandInitOrDie(argc, argv).first;
root->fullyLoad();