IOS/Wiimote: keep the source guard under __LIBRETRO__

This commit is contained in:
Mohammad Syuhada committed 2026-11-04 19:00:45 +08:00
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