From 157717a61f305397b97a5d6d8e1396f4705c2962 Mon Sep 17 00:00:00 2001 From: "Jules.A" Date: Mon, 3 Dec 2018 00:52:09 +0800 Subject: [PATCH] Hide the console window before freeing so if the console is attachted to another process (currently occuring under Win10) it is at least hidden. --- desmume/src/frontend/windows/console.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desmume/src/frontend/windows/console.cpp b/desmume/src/frontend/windows/console.cpp index e73662c8e..8bdc38ae7 100644 --- a/desmume/src/frontend/windows/console.cpp +++ b/desmume/src/frontend/windows/console.cpp @@ -208,6 +208,7 @@ void CloseConsole() WritePrivateProfileInt("Console", "PosY", pos.top, IniName); WritePrivateProfileInt("Console", "Width", width, IniName); WritePrivateProfileInt("Console", "Height", height, IniName); + ShowWindow(gConsoleWnd, SW_HIDE); // FreeConsole isn't killing the console process in Windows 10 so just hide the window for now. } FreeConsole();