From 2c5b75a69576883e019a6c272cf04d38058734d4 Mon Sep 17 00:00:00 2001 From: Gauvain 'GovanifY' Roussel-Tarbouriech Date: Sat, 12 Dec 2020 21:39:09 +0100 Subject: [PATCH] PAD: windows, pause config when in game and make sure it opens --- pcsx2/PAD/Windows/PAD.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pcsx2/PAD/Windows/PAD.cpp b/pcsx2/PAD/Windows/PAD.cpp index a79ac08ebd..baf976aa17 100644 --- a/pcsx2/PAD/Windows/PAD.cpp +++ b/pcsx2/PAD/Windows/PAD.cpp @@ -39,6 +39,7 @@ #include "AppConfig.h" #include #include "Utilities/pxStreams.h" +#include "AppCoreThread.h" #define WMA_FORCE_UPDATE (WM_APP + 0x537) #define FORCE_UPDATE_WPARAM ((WPARAM)0x74328943) @@ -1022,11 +1023,9 @@ DWORD WINAPI MaximizeWindowThreadProc(void* lpParameter) void PADconfigure() { - if (openCount) - { - return; - } + ScopedCoreThreadPause paused_core; Configure(); + paused_core.AllowResume(); } #ifdef _MSC_VER