MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / SupportCheck

Method SupportCheck

pcsx2/SIO/Multitap/MultitapProtocol.cpp:17–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15std::array<MultitapProtocol, SIO::PORTS> g_MultitapArr;
16
17void MultitapProtocol::SupportCheck()
18{
19 MT_LOG.WriteLn("%s", __FUNCTION__);
20
21 if (EmuConfig.Pad.IsMultitapPortEnabled(g_Sio2.port))
22 {
23 g_Sio2FifoOut.push_back(0xff);
24 g_Sio2FifoOut.push_back(0x80);
25 g_Sio2FifoOut.push_back(0x5a);
26 g_Sio2FifoOut.push_back(0x04);
27 g_Sio2FifoOut.push_back(0x00);
28 g_Sio2FifoOut.push_back(0x5a);
29 }
30 else
31 {
32 g_Sio2FifoOut.push_back(0xff);
33 g_Sio2FifoOut.push_back(0xff);
34 g_Sio2FifoOut.push_back(0xff);
35 g_Sio2FifoOut.push_back(0xff);
36 g_Sio2FifoOut.push_back(0xff);
37 g_Sio2FifoOut.push_back(0xff);
38 }
39}
40
41void MultitapProtocol::Select(MultitapMode mode)
42{

Callers

nothing calls this directly

Calls 3

IsMultitapPortEnabledMethod · 0.80
WriteLnMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected