mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
Fix Pad_DX9 crash
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@398 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
af60e06bb0
commit
8bd78a21b4
@ -241,7 +241,7 @@ void Init()
|
||||
g_Channel[i].m_InLo.Hex = 0;
|
||||
}
|
||||
|
||||
unsigned int AttachedPadMask = PluginPAD::PAD_GetAttachedPads();
|
||||
unsigned int AttachedPadMask = PluginPAD::PAD_GetAttachedPads ? PluginPAD::PAD_GetAttachedPads() : 1;
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
if (AttachedPadMask & (1 << i))
|
||||
|
@ -71,7 +71,6 @@ bool LoadPlugin(const char *_Filename)
|
||||
(PAD_Initialize != 0) &&
|
||||
(PAD_Shutdown != 0) &&
|
||||
(PAD_GetStatus != 0))
|
||||
//(PAD_Rumble != 0))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user