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

Method SoftReset

pcsx2/SIO/Sio2.cpp:81–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void Sio2::SoftReset()
82{
83 queueRead = false;
84 queuePosition = 0;
85 commandLength = 0;
86 processedLength = 0;
87 // Clear dmaBlockSize, in case the next SIO2 command is not sent over DMA11.
88 dmaBlockSize = 0;
89 queueComplete = false;
90
91 // Anything in g_Sio2FifoIn which was not necessary to consume should be cleared out prior to the next SIO2 cycle.
92 while (!g_Sio2FifoIn.empty())
93 {
94 g_Sio2FifoIn.pop_front();
95 }
96
97 // cmd_stat should always be reassembled based on the devices being probed by the packet.
98 CmdStat = 0;
99}
100
101void Sio2::Interrupt()
102{

Callers 2

InitializeMethod · 0.95
PadMethod · 0.45

Calls 2

emptyMethod · 0.45
pop_frontMethod · 0.45

Tested by

no test coverage detected