remove/replace ai generated comments

This commit is contained in:
Merith 2026-03-04 05:12:35 -08:00
parent acd67eaa75
commit a26e594a6a
2 changed files with 1 additions and 7 deletions

View file

@ -58,9 +58,6 @@ target_compile_definitions(MinecraftClient PRIVATE
) )
if(MSVC) if(MSVC)
configure_msvc_target(MinecraftClient) configure_msvc_target(MinecraftClient)
# Use CONSOLE subsystem so the shell waits for the process (important for
# Docker and piped output in server mode). WinMainCRTStartup keeps the
# WinMain entry point. Client mode calls FreeConsole() to detach.
target_link_options(MinecraftClient PRIVATE target_link_options(MinecraftClient PRIVATE
/SUBSYSTEM:CONSOLE /SUBSYSTEM:CONSOLE
/ENTRY:WinMainCRTStartup /ENTRY:WinMainCRTStartup

View file

@ -228,10 +228,7 @@ static BOOL WINAPI HeadlessServerCtrlHandler(DWORD ctrlType)
static void SetupHeadlessServerConsole() static void SetupHeadlessServerConsole()
{ {
// The exe is linked as /SUBSYSTEM:CONSOLE, so it normally inherits the // Verify console handles are valid before redirecting CRT streams
// parent's console. However, if launched with DETACHED_PROCESS or
// CREATE_NO_WINDOW the handles may be invalid. Verify before redirecting
// the CRT streams to avoid leaving them in a broken state.
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE); HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
HANDLE hStdIn = GetStdHandle(STD_INPUT_HANDLE); HANDLE hStdIn = GetStdHandle(STD_INPUT_HANDLE);
bool hasConsole = bool hasConsole =