MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / iFileRead

Function iFileRead

src/SB/Core/gc/iFile.cpp:151–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151U32 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
169static void async_cb(s32 result, DVDFileInfo* fileInfo)
170{

Callers 2

iFileLoadFunction · 0.70
BFD_readFunction · 0.50

Calls 2

iFileSeekFunction · 0.70
iFileReadAsyncFunction · 0.70

Tested by

no test coverage detected