| 68 | } |
| 69 | |
| 70 | void 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 | |
| 92 | int InputIsoFile::FinishRead3(u8* dst, uint mode) |
| 93 | { |
no test coverage detected