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

Method BeginRead2

pcsx2/CDVD/InputIsoFile.cpp:70–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void InputIsoFile::BeginRead2(uint lsn)
71{
72 m_current_lsn = lsn;
73
74 if (lsn >= m_blocks)
75 {
76 // While this usually indicates that the ISO is corrupted, some games do attempt
77 // to read past the end of the disc, so don't error here.
78 ERROR_LOG("isoFile error: Block index is past the end of file! ({} >= {}).", lsn, m_blocks);
79 return;
80 }
81
82 // same sector?
83 if (lsn == m_read_lsn)
84 return;
85
86 m_read_lsn = lsn;
87
88 m_reader->BeginRead(m_readbuffer, m_read_lsn, 1);
89 m_read_inprogress = true;
90}
91
92int InputIsoFile::FinishRead3(u8* dst, uint mode)
93{

Callers 1

ISOreadTrackFunction · 0.80

Calls 1

BeginReadMethod · 0.80

Tested by

no test coverage detected