MCPcopy Create free account
hub / github.com/cathery/sys-con / Initialize

Method Initialize

source/ControllerSwitch/SwitchHDLHandler.cpp:17–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17Result SwitchHDLHandler::Initialize()
18{
19
20 R_TRY(m_controller->Initialize());
21
22 if (DoesControllerSupport(m_controller->GetType(), SUPPORTS_NOTHING))
23 return 0;
24
25 R_TRY(InitHdlState());
26
27 if (DoesControllerSupport(m_controller->GetType(), SUPPORTS_PAIRING))
28 {
29 R_TRY(InitOutputThread());
30 }
31
32 R_TRY(InitInputThread());
33
34 return 0;
35}
36
37void SwitchHDLHandler::Exit()
38{

Callers 1

InsertFunction · 0.45

Calls 2

DoesControllerSupportFunction · 0.85
GetTypeMethod · 0.45

Tested by

no test coverage detected