mirror of
https://github.com/cathery/sys-con.git
synced 2025-03-16 07:21:04 +00:00
Change some WriteToLog calls
This commit is contained in:
parent
d5edac6c1b
commit
2690be44d8
@ -23,24 +23,22 @@ namespace syscon::controllers
|
||||
|
||||
Result Insert(std::unique_ptr<IController> &&controllerPtr)
|
||||
{
|
||||
WriteToLog("Inserting controller");
|
||||
std::unique_ptr<SwitchVirtualGamepadHandler> switchHandler;
|
||||
if (UseAbstractedPad)
|
||||
{
|
||||
switchHandler = std::make_unique<SwitchAbstractedPadHandler>(std::move(controllerPtr));
|
||||
WriteToLog("Inserting as abstracted pad");
|
||||
WriteToLog("Inserting controller as abstracted pad");
|
||||
}
|
||||
else
|
||||
{
|
||||
switchHandler = std::make_unique<SwitchHDLHandler>(std::move(controllerPtr));
|
||||
WriteToLog("Inserting as HDLs");
|
||||
WriteToLog("Inserting controller as HDLs");
|
||||
}
|
||||
|
||||
Result rc = switchHandler->Initialize();
|
||||
if (R_SUCCEEDED(rc))
|
||||
controllerHandlers.push_back(std::move(switchHandler));
|
||||
|
||||
WriteToLog("Controller result: 0x%x", rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
@ -133,7 +133,7 @@ namespace syscon::usb
|
||||
|
||||
if (!found_flag)
|
||||
{
|
||||
//WriteToLog("Erasing controller! %i", (*it)->GetController()->GetType());
|
||||
WriteToLog("Erasing controller");
|
||||
controllers::Get().erase(it--);
|
||||
WriteToLog("Controller erased!");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user