From 314d31fe7bf73866b4ae9b6a8195de50ced26312 Mon Sep 17 00:00:00 2001 From: AyeZeeBB Date: Sun, 11 Oct 2026 14:09:29 -0500 Subject: [PATCH] Update main.cpp --- Server/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server/main.cpp b/Server/main.cpp index 3edc186..a30398b 100644 --- a/Server/main.cpp +++ b/Server/main.cpp @@ -688,7 +688,10 @@ int WINAPI wWinMain(HINSTANCE instance, HINSTANCE, PWSTR, int cmd_show) { for (int i = 1; i < argc; ++i) { if (!argvW[i]) continue; std::wstring arg = argvW[i]; - if (arg == L"--headless" || arg == L"--cli" || arg == L"--no-gui" || arg == L"-nogui" || arg == L"-headless" || arg == L"-cli") { + // The release build's world layer export (serve) is a console job too: the window would + // open instead and nothing would be written. + if (arg == L"--headless" || arg == L"--cli" || arg == L"--no-gui" || arg == L"-nogui" || arg == L"-headless" || arg == L"-cli" || + arg == L"--export-world-layers") { headless = true; break; }