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

Function cb

src/dolphin/src/dvd/emu_level2/fstload.c:14–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12static DVDDiskID *idTmp = NULL;
13
14static void cb(s32 result, DVDCommandBlock *block)
15{
16 if (result > 0)
17 {
18 switch (status)
19 {
20 case 0:
21 status = 1;
22 DVDReadAbsAsyncForBS(block, bb2, OSRoundUp32B(sizeof(bb2)), 0x420, cb);
23 break;
24 case 1:
25 status = 2;
26 DVDReadAbsAsyncForBS(block, bb2->FSTAddress, OSRoundUp32B(bb2->FSTLength), bb2->FSTPosition,
27 cb);
28 }
29 }
30 else if (result == -1)
31 {
32 }
33 else if (result == -4)
34 {
35 status = 0;
36 DVDReset();
37 DVDReadDiskID(block, idTmp, cb);
38 }
39}
40
41void __fstLoad()
42{

Callers 2

__DVDInterruptHandlerFunction · 0.85
xGridCheckBoundFunction · 0.85

Calls 3

DVDReadAbsAsyncForBSFunction · 0.85
DVDResetFunction · 0.85
DVDReadDiskIDFunction · 0.85

Tested by

no test coverage detected