Check if the memcard is for PS1, and if we are working on a command sent over SIO2. If so, return dead air.
| 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. |
| 24 | bool 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. |