mirror of
https://github.com/flyinghead/flycast.git
synced 2026-11-11 01:51:38 -10:00
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
17 lines
298 B
C++
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;
|
|
}
|