mirror of
https://github.com/cathery/sys-con.git
synced 2024-10-02 20:52:02 +00:00
Raise device limit to 10 and prevent it from going any further
This commit is contained in:
parent
562f5f37dc
commit
fc48561b3a
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user