Core: Check for initialized GCPad before resetting rumble

This commit is contained in:
spycrab
2018-03-27 16:24:36 +02:00
parent ceed6890df
commit 016ef43b27
3 changed files with 8 additions and 0 deletions

View File

@ -250,6 +250,8 @@ static void ResetRumble()
GCAdapter::ResetRumble();
#endif
#if defined(CIFACE_USE_XINPUT) || defined(CIFACE_USE_DINPUT)
if (!Pad::IsInitialized())
return;
for (int i = 0; i < 4; ++i)
Pad::ResetRumble(i);
#endif