[UI/Windows] Object out of scope optimization for better codegeneration (lower level scope)

This commit is contained in:
Herman Semenov committed 2023-12-20 12:35:02 +03:00
1 parent ca94de8d4b
commit 95f535dab0
19 files changed
+59 -69

No files matched your search

+1 -1
View File
@@ -165,11 +165,11 @@ int XinputDevice::UpdateState() {
bool anySuccess = false;
for (int i = 0; i < XUSER_MAX_COUNT; i++) {
XINPUT_STATE state{};
XINPUT_VIBRATION vibration{};
if (check_delay[i]-- > 0)
continue;
DWORD dwResult = PPSSPP_XInputGetState(i, &state);
if (dwResult == ERROR_SUCCESS) {
XINPUT_VIBRATION vibration{};
UpdatePad(i, state, vibration);
anySuccess = true;
} else {