flycast/core/hw/maple/maple_helper.cpp

15 lines
226 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++)
rv|=(MapleDevices[bus][i]!=nullptr?1:0)<<i;
return rv;
}