1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-10-01 12:22:01 +00:00

Raise device limit to 10 and prevent it from going any further

This commit is contained in:
cathery 2019-11-09 11:45:47 +03:00
parent 562f5f37dc
commit fc48561b3a

View File

@ -98,7 +98,7 @@ Result mainLoop()
WriteToLog("Successfully created catch-all event");
}
controllerInterfaces.reserve(8);
controllerInterfaces.reserve(10);
while (appletMainLoop())
{
@ -114,6 +114,10 @@ Result mainLoop()
if (R_SUCCEEDED(rc))
{
WriteToLog("Catch-all event went off");
if (controllerInterfaces.size() >= 10)
WriteToLog("But the controllers table reached its max size!");
else
{
UsbHsInterface interfaces[8];
s32 total_entries;
@ -227,4 +231,4 @@ Result mainLoop()
//controllerInterfaces.clear();
return rc;
}
}