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

Method GetTerminator

pcsx2/SIO/Memcard/MemoryCardProtocol.cpp:199–206  ·  view source on GitHub ↗

This one is a bit unusual. Old and new versions of MCMAN seem to handle this differently. Some commands may check [4] for the terminator. Others may check [3]. Typically, older MCMAN revisions will exclusively check [4], and newer revisions will check both [3] and [4] for different values. In all cases, they expect to see a valid terminator value. Also worth noting old revisions of MCMAN will not

Source from the content-addressed store, hash-verified

197// Also worth noting old revisions of MCMAN will not set anything other than 0x55 for the terminator,
198// while newer revisions will set the terminator to another value (most commonly 0x5a).
199void MemoryCardProtocol::GetTerminator()
200{
201 MC_LOG.WriteLn("%s", __FUNCTION__);
202 PS1_FAIL();
203 g_Sio2FifoOut.push_back(0x2b);
204 g_Sio2FifoOut.push_back(mcd->term);
205 g_Sio2FifoOut.push_back(mcd->term);
206}
207
208void MemoryCardProtocol::WriteData()
209{

Callers 1

MemcardMethod · 0.80

Calls 2

WriteLnMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected