mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 01:24:41 -06:00
Update main.cpp
This commit is contained in:
parent
de0e59a130
commit
27b2fe7ef3
10
src/main.cpp
10
src/main.cpp
@ -174,14 +174,18 @@ void requireConsole()
|
||||
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||
DWORD dwFileType = GetFileType(hOut);
|
||||
|
||||
if (dwFileType == FILE_TYPE_UNKNOWN || dwFileType == FILE_TYPE_CHAR) {
|
||||
if (AttachConsole(ATTACH_PARENT_PROCESS) != FALSE) {
|
||||
if (dwFileType == FILE_TYPE_UNKNOWN || dwFileType == FILE_TYPE_CHAR)
|
||||
{
|
||||
if (AttachConsole(ATTACH_PARENT_PROCESS) != FALSE)
|
||||
{
|
||||
freopen("CONOUT$", "w", stdout);
|
||||
freopen("CONOUT$", "w", stderr);
|
||||
freopen("CONIN$", "r", stdin);
|
||||
isConsoleConnected = true;
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
isConsoleConnected = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user