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

Function cbForStateReadingFST

src/dolphin/src/dvd/dvd.c:125–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125static void cbForStateReadingFST(u32 intType)
126{
127 DVDCommandBlock* finished;
128
129 if (intType == 16)
130 {
131 executing->state = -1;
132 stateTimeout();
133 return;
134 }
135
136 if (intType & 1)
137 {
138 NumInternalRetry = 0;
139 __DVDFSInit();
140 finished = executing;
141 executing = &DummyCommandBlock;
142 finished->state = 0;
143 if (finished->callback)
144 {
145 (finished->callback)(0, finished);
146 }
147
148 stateReady();
149 }
150 else
151 {
152 stateGettingError();
153 }
154}
155
156inline static void stateError(u32 error)
157{

Callers

nothing calls this directly

Calls 4

stateTimeoutFunction · 0.85
__DVDFSInitFunction · 0.85
stateReadyFunction · 0.85
stateGettingErrorFunction · 0.85

Tested by

no test coverage detected