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

Method PS1Fail

pcsx2/SIO/Memcard/MemoryCardProtocol.cpp:24–37  ·  view source on GitHub ↗

Check if the memcard is for PS1, and if we are working on a command sent over SIO2. If so, return dead air.

Source from the content-addressed store, hash-verified

22// Check if the memcard is for PS1, and if we are working on a command sent over SIO2.
23// If so, return dead air.
24bool MemoryCardProtocol::PS1Fail()
25{
26 if (mcd->IsPSX() && g_Sio2.commandLength > 0)
27 {
28 while (g_Sio2FifoOut.size() < g_Sio2.commandLength)
29 {
30 g_Sio2FifoOut.push_back(0x00);
31 }
32
33 return true;
34 }
35
36 return false;
37}
38
39// A repeated pattern in memcard commands is to pad with zero bytes,
40// then end with 0x2b and terminator bytes. This function is a shortcut for that.

Callers

nothing calls this directly

Calls 3

IsPSXMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected