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

Function ProcessNextCommand

src/dolphin/src/dvd/dvdlow.c:53–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51static void Read(void* addr, u32 length, u32 offset, DVDLowCallback callback);
52
53inline BOOL ProcessNextCommand()
54{
55 s32 n = NextCommandNumber;
56 ASSERT(n < 3);
57
58 if (CommandList[n].cmd == 1)
59 {
60 ++NextCommandNumber;
61 Read(CommandList[n].addr, CommandList[n].length, CommandList[n].offset,
62 CommandList[n].callback);
63 return TRUE;
64 }
65 else if (CommandList[n].cmd == 2)
66 {
67 ++NextCommandNumber;
68 DVDLowSeek(CommandList[n].offset, CommandList[n].callback);
69 return TRUE;
70 }
71
72 return FALSE;
73}
74
75void __DVDInterruptHandler(__OSInterrupt interrupt, OSContext* context)
76{

Callers 2

__DVDInterruptHandlerFunction · 0.85
AlarmHandlerFunction · 0.85

Calls 2

DVDLowSeekFunction · 0.85
ReadFunction · 0.70

Tested by

no test coverage detected