mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
disabling quick editing in the console
This commit is contained in:
parent
c9d1225f4e
commit
89bd2c6b15
|
@ -4380,7 +4380,14 @@ int main(int argc, const char **argv) // ignore_convention
|
||||||
|
|
||||||
#if defined(CONF_FAMILY_WINDOWS)
|
#if defined(CONF_FAMILY_WINDOWS)
|
||||||
if(g_Config.m_ClShowConsole)
|
if(g_Config.m_ClShowConsole)
|
||||||
|
{
|
||||||
AllocConsole();
|
AllocConsole();
|
||||||
|
HANDLE hInput;
|
||||||
|
DWORD prev_mode;
|
||||||
|
hInput = GetStdHandle(STD_INPUT_HANDLE);
|
||||||
|
GetConsoleMode(hInput, &prev_mode);
|
||||||
|
SetConsoleMode(hInput, prev_mode & ENABLE_EXTENDED_FLAGS);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// execute autoexec file
|
// execute autoexec file
|
||||||
|
|
Loading…
Reference in a new issue