mirror of
https://git.revela.dev/itsRevela/LCE-Revelations.git
synced 2026-05-21 19:24:55 +00:00
Revert "chore(server): re-enable console QuickEdit mode"
This reverts commit 99120e5323.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user