1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-07-03 02:18:43 +00:00

Change some WriteToLog calls

This commit is contained in:
cathery 2020-03-10 12:47:32 +03:00
parent d5edac6c1b
commit 2690be44d8
2 changed files with 3 additions and 5 deletions

View File

@ -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;
} }

View File

@ -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!");
} }