[Console] Correctly hide the console
This commit is contained in:
parent
733054431b
commit
a7f0b6b4d2
@ -484,7 +484,7 @@ namespace Components
|
||||
|
||||
void Console::FreeNativeConsole()
|
||||
{
|
||||
if (Flags::HasFlag("console") || ZoneBuilder::IsEnabled())
|
||||
if (!Flags::HasFlag("stdout") && (!Dedicated::IsEnabled() || Flags::HasFlag("console")))
|
||||
{
|
||||
FreeConsole();
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ namespace Components
|
||||
|
||||
Singleton::FirstInstance = (CreateMutexA(nullptr, FALSE, "iw4x_mutex") && GetLastError() != ERROR_ALREADY_EXISTS);
|
||||
|
||||
if (!Singleton::FirstInstance && !ConnectProtocol::Used() && MessageBoxA(nullptr, "Do you want to start another instance?", "Game already running", MB_ICONEXCLAMATION | MB_YESNO) == IDNO)
|
||||
if (!Singleton::FirstInstance && !ConnectProtocol::Used() && MessageBoxA(nullptr, "Do you want to start another instance?\nNot all features will be available!", "Game already running", MB_ICONEXCLAMATION | MB_YESNO) == IDNO)
|
||||
{
|
||||
ExitProcess(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user