Files
Flyinghead 5fa1886fdf maple: individual device reconnect. Check DreamPotato socket state
Only reconnect maple devices that have changed instead of all of them.
Check DreamPotato socket state every second.
Disconnect linked maple device when disconnected from remote device.
dreampicoport: send port when changing bus
2026-01-17 19:11:56 +01:00

17 lines
298 B
C++

#include "maple_helper.h"
#include "maple_if.h"
u32 maple_GetAttachedDevices(u32 bus)
{
verify(MapleDevices[bus][5] != nullptr);
u32 rv = 0;
for (int i = 0; i < 5; i++)
{
auto device = MapleDevices[bus][i];
if (device != nullptr && device->linkStatus())
rv |= 1 << i;
}
return rv;
}