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

Function DVDGetCommandBlockStatus

src/dolphin/src/dvd/dvd.c:1170–1189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1168}
1169
1170s32 DVDGetCommandBlockStatus(const DVDCommandBlock* block)
1171{
1172 BOOL enabled;
1173 s32 retVal;
1174
1175 enabled = OSDisableInterrupts();
1176
1177 if (block->state == 3)
1178 {
1179 retVal = 1;
1180 }
1181 else
1182 {
1183 retVal = block->state;
1184 }
1185
1186 OSRestoreInterrupts(enabled);
1187
1188 return retVal;
1189}
1190
1191s32 DVDGetDriveStatus()
1192{

Callers 3

__OSRebootFunction · 0.85
DVDGetDriveStatusFunction · 0.85
iFileSeekFunction · 0.85

Calls 1

OSDisableInterruptsFunction · 0.85

Tested by

no test coverage detected