| 149 | } |
| 150 | |
| 151 | U32 iFileRead(tag_xFile* file, void* buf, U32 size) |
| 152 | { |
| 153 | tag_iFile* ps = &file->ps; |
| 154 | |
| 155 | iFileSeek(file, ps->offset, IFILE_SEEK_SET); |
| 156 | |
| 157 | iFileSyncAsyncReadActive = 1; |
| 158 | |
| 159 | iFileReadAsync(file, buf, size, ifilereadCB, 0); |
| 160 | |
| 161 | while (iFileSyncAsyncReadActive) |
| 162 | { |
| 163 | iTRCDisk::CheckDVDAndResetState(); |
| 164 | } |
| 165 | |
| 166 | return size; |
| 167 | } |
| 168 | |
| 169 | static void async_cb(s32 result, DVDFileInfo* fileInfo) |
| 170 | { |
no test coverage detected