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;
|
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++)
|
for (int i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
if (AttachedPadMask & (1 << i))
|
if (AttachedPadMask & (1 << i))
|
||||||
|
|
|
@ -71,7 +71,6 @@ bool LoadPlugin(const char *_Filename)
|
||||||
(PAD_Initialize != 0) &&
|
(PAD_Initialize != 0) &&
|
||||||
(PAD_Shutdown != 0) &&
|
(PAD_Shutdown != 0) &&
|
||||||
(PAD_GetStatus != 0))
|
(PAD_GetStatus != 0))
|
||||||
//(PAD_Rumble != 0))
|
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue