Annotation of src/corr7cd.c, revision 1.1.1.1

1.1       root        1: /***************************************************************************
                      2:  *   CORR7CD.C - CD-ROM & CD player routines for Corridor 7 game
                      3:  *
                      4:  *                                                     06/04/96  Les Bird
                      5:  ***************************************************************************/
                      6: 
                      7: #include "icorp.h"
                      8: #include <memcheck.h>
                      9: 
                     10: char far *cdDrivesPtr;
                     11: 
                     12: void
                     13: CD_getDriveLetters(void)
                     14: {
                     15:      PMREGS regs;
                     16:      PMSREGS sregs;
                     17: 
                     18:      if (cdDrivesPtr == NULL) {
                     19:           PM_allocRealSeg(26,&pmsel,&pmoff,&rmseg,&rmoff);
                     20:           cdDrivesPtr=MK_PHYS(rmseg,rmoff);
                     21:      }
                     22:      regs.ax=0x150D;
                     23:      regs.bx=rmoff;
                     24:      sregs.es=rmseg;
                     25:      PM_int386x(0x2F,&regs,&regs,&sregs);
                     26: }
                     27: 
                     28: int
                     29: CD_mscdexLoaded(void)
                     30: {
                     31:      PMREGS regs;
                     32: 
                     33:      regs.ax=0x1500;
                     34:      regs.bx=0;
                     35:      PM_int386(0x2F,&regs,&regs);
                     36:      if (regs.bx == 0) {
                     37:           return(0);
                     38:      }
                     39:      CD_getDriveLetters();
                     40:      return(1);
                     41: }
                     42: 
                     43: 

unix.superglobalmegacorp.com