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)
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
/SUBSYSTEM:CONSOLE
/ENTRY:WinMainCRTStartup

View file

@ -228,10 +228,7 @@ static BOOL WINAPI HeadlessServerCtrlHandler(DWORD ctrlType)
static void SetupHeadlessServerConsole()
{
// The exe is linked as /SUBSYSTEM:CONSOLE, so it normally inherits the
// 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.
// Verify console handles are valid before redirecting CRT streams
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
HANDLE hStdIn = GetStdHandle(STD_INPUT_HANDLE);
bool hasConsole =