mirror of
https://github.com/cathery/sys-con.git
synced 2025-03-29 22:20:09 +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)
|
Result Insert(std::unique_ptr<IController> &&controllerPtr)
|
||||||
{
|
{
|
||||||
WriteToLog("Inserting controller");
|
|
||||||
std::unique_ptr<SwitchVirtualGamepadHandler> switchHandler;
|
std::unique_ptr<SwitchVirtualGamepadHandler> switchHandler;
|
||||||
if (UseAbstractedPad)
|
if (UseAbstractedPad)
|
||||||
{
|
{
|
||||||
switchHandler = std::make_unique<SwitchAbstractedPadHandler>(std::move(controllerPtr));
|
switchHandler = std::make_unique<SwitchAbstractedPadHandler>(std::move(controllerPtr));
|
||||||
WriteToLog("Inserting as abstracted pad");
|
WriteToLog("Inserting controller as abstracted pad");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
switchHandler = std::make_unique<SwitchHDLHandler>(std::move(controllerPtr));
|
switchHandler = std::make_unique<SwitchHDLHandler>(std::move(controllerPtr));
|
||||||
WriteToLog("Inserting as HDLs");
|
WriteToLog("Inserting controller as HDLs");
|
||||||
}
|
}
|
||||||
|
|
||||||
Result rc = switchHandler->Initialize();
|
Result rc = switchHandler->Initialize();
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
controllerHandlers.push_back(std::move(switchHandler));
|
controllerHandlers.push_back(std::move(switchHandler));
|
||||||
|
|
||||||
WriteToLog("Controller result: 0x%x", rc);
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ namespace syscon::usb
|
|||||||
|
|
||||||
if (!found_flag)
|
if (!found_flag)
|
||||||
{
|
{
|
||||||
//WriteToLog("Erasing controller! %i", (*it)->GetController()->GetType());
|
WriteToLog("Erasing controller");
|
||||||
controllers::Get().erase(it--);
|
controllers::Get().erase(it--);
|
||||||
WriteToLog("Controller erased!");
|
WriteToLog("Controller erased!");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user