Skip to content

Commit 250caae

Browse files
authored
Hide game window on quit to make it look instant (PR #4253)
1 parent 39da3f0 commit 250caae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Client/core/CCore.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,6 +1452,9 @@ void CCore::Quit(bool bInstantly)
14521452

14531453
WatchDogBeginSection("Q0"); // Allow loader to detect freeze on exit
14541454

1455+
// Hide game window to make quit look instant
1456+
ShowWindow(GetHookedWindow(), SW_HIDE);
1457+
14551458
// Destroy the client
14561459
CModManager::GetSingleton().Unload();
14571460

0 commit comments

Comments
 (0)