| 465 | } |
| 466 | |
| 467 | s32 DoCDVDreadTrack(u32 lsn, int mode) |
| 468 | { |
| 469 | CheckNullCDVD(); |
| 470 | |
| 471 | // TODO: The CDVD api only uses the new getBuffer style. Why is this temp? |
| 472 | // lastReadSize is needed for block dumps |
| 473 | switch (mode) |
| 474 | { |
| 475 | case CDVD_MODE_2352: |
| 476 | lastReadSize = 2352; |
| 477 | break; |
| 478 | case CDVD_MODE_2340: |
| 479 | lastReadSize = 2340; |
| 480 | break; |
| 481 | case CDVD_MODE_2328: |
| 482 | lastReadSize = 2328; |
| 483 | break; |
| 484 | case CDVD_MODE_2048: |
| 485 | lastReadSize = 2048; |
| 486 | break; |
| 487 | } |
| 488 | |
| 489 | //DevCon.Warning("CDVD readTrack(lsn=%d,mode=%d)",params lsn, lastReadSize); |
| 490 | lastLSN = lsn; |
| 491 | return CDVD->readTrack(lsn, mode); |
| 492 | } |
| 493 | |
| 494 | s32 DoCDVDgetBuffer(u8* buffer) |
| 495 | { |
no test coverage detected