All pastes #952167 Raw Edit

Miscellany

public text v1 · immutable
#952167 ·published 2008-03-21 23:07 UTC
rendered paste body
    switch (de->media_type & MEDIA_MASK) {
    case MEDIA_NOEMU:
        printf("Disc doesn't use boot disk emulation\n");
        return 0;
    case MEDIA_1200_FD:
        *length_p = 1200*1024/512;
        break;
    case MEDIA_1440_FD:
        *length_p = 1440*1024/512;
        break;
    case MEDIA_2880_FD:
        *length_p = 2880*1024/512;
        break;
    case MEDIA_HD:
        /* FIXME: read partition table and return first partition.
         * Spec states emulation HD has only one partition and it must
         * be the first partition */
        printf("Disc uses hard disk emulation - not supported\n");
        return 0;
    }