Revert "chore(server): re-enable console QuickEdit mode"

This reverts commit 99120e5323.
This commit is contained in:
itsRevela
2026-05-02 14:47:46 -05:00
parent 68c2994523
commit 386b9c430b

View File

@@ -378,6 +378,18 @@ int main(int argc, char **argv)
SetConsoleCtrlHandler(ConsoleCtrlHandlerProc, TRUE);
// Disable QuickEdit mode so clicking in the console window doesn't freeze
// the server process. Without this, any accidental click pauses all threads
// that write to stdout until a key is pressed.
{
HANDLE hInput = GetStdHandle(STD_INPUT_HANDLE);
DWORD mode = 0;
GetConsoleMode(hInput, &mode);
mode &= ~ENABLE_QUICK_EDIT_MODE;
mode |= ENABLE_EXTENDED_FLAGS;
SetConsoleMode(hInput, mode);
}
SetExeWorkingDirectory();
// Load base settings from server.properties, then override with CLI values when provided