| 1168 | } |
| 1169 | |
| 1170 | s32 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 | |
| 1191 | s32 DVDGetDriveStatus() |
| 1192 | { |
no test coverage detected