mirror of
https://github.com/libretro/parallel-gx1.git
synced 2026-11-07 04:26:01 -10:00
IOS/Wiimote: keep the source guard under __LIBRETRO__
This commit is contained in:
1 parent
c250895222
commit
192f6bdca8
1 file changed
+4
-2
@@ -453,8 +453,9 @@ void WiimoteDevice::ExecuteL2capCmd(u8* ptr, u32 size)
|
||||
m_host->SendACLPacket(GetBD(), reinterpret_cast<const u8*>(&data_frame), sizeof(data_frame));
|
||||
|
||||
// Does the wii remote reply on the control or interrupt channel in this situation?
|
||||
// A state restored with more remotes linked than this session has sources.
|
||||
#ifdef __LIBRETRO__
|
||||
if (IsSourceValid())
|
||||
#endif
|
||||
m_hid_source->InterruptDataOutput(data + sizeof(hid_type), data_size - sizeof(hid_type));
|
||||
}
|
||||
else
|
||||
@@ -469,8 +470,9 @@ void WiimoteDevice::ExecuteL2capCmd(u8* ptr, u32 size)
|
||||
const u8 hid_type = data[0];
|
||||
if (hid_type == ((WiimoteCommon::HID_TYPE_DATA << 4) | WiimoteCommon::HID_PARAM_OUTPUT))
|
||||
{
|
||||
// A state restored with more remotes linked than this session has sources.
|
||||
#ifdef __LIBRETRO__
|
||||
if (IsSourceValid())
|
||||
#endif
|
||||
m_hid_source->InterruptDataOutput(data + sizeof(hid_type), data_size - sizeof(hid_type));
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user