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

Method DoEndpointState

pcsx2/USB/USB.cpp:275–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275void USB::DoEndpointState(USBEndpoint* ep, StateWrapper& sw)
276{
277 // assumed the fields above are constant
278 sw.Do(&ep->pipeline);
279 sw.Do(&ep->halted);
280
281 if (sw.IsReading())
282 {
283 // clear out all packets, we'll fill it in later
284 while (!QTAILQ_EMPTY(&ep->queue))
285 QTAILQ_REMOVE(&ep->queue, QTAILQ_FIRST(&ep->queue), queue);
286 }
287}
288
289void USB::DoPacketState(USBPacket* p, StateWrapper& sw, const std::array<bool, 2>& valid_devices)
290{

Callers

nothing calls this directly

Calls 2

IsReadingMethod · 0.80
DoMethod · 0.45

Tested by

no test coverage detected