cd_loaddata

From ArchaicPixels: HuC and PCEAS Documentation

Jump to: navigation, search

cd_loaddata(int ovl_idx, int sector_offset, farptr destaddr, int bytes);      [ 3.10+ ]

    Read data from CDROM into area (or overlay 'const' or other data)
    specified by 'destaddr', for a length of 'bytes'.
    Read it from the overlay segment specified by 'ovl_idx', with sector
    offset (ie. multiples of 2048 bytes) of 'sector_offset'.
    Non-zero return values indicate errors.
Personal tools