1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-07-05 10:48:46 +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"); WriteToLog("Successfully created catch-all event");
} }
controllerInterfaces.reserve(8); controllerInterfaces.reserve(10);
while (appletMainLoop()) while (appletMainLoop())
{ {
@ -114,6 +114,10 @@ Result mainLoop()
if (R_SUCCEEDED(rc)) if (R_SUCCEEDED(rc))
{ {
WriteToLog("Catch-all event went off"); WriteToLog("Catch-all event went off");
if (controllerInterfaces.size() >= 10)
WriteToLog("But the controllers table reached its max size!");
else
{
UsbHsInterface interfaces[8]; UsbHsInterface interfaces[8];
s32 total_entries; s32 total_entries;
@ -227,4 +231,4 @@ Result mainLoop()
//controllerInterfaces.clear(); //controllerInterfaces.clear();
return rc; return rc;
} }