Diff for /np2/fdd/sxsicd.c between versions 1.7 and 1.8

version 1.7, 2005/04/06 16:46:07 version 1.8, 2011/01/15 18:04:43
Line 298  static BRESULT opencue(SXSIDEV sxsi, con Line 298  static BRESULT opencue(SXSIDEV sxsi, con
   
         _CDTRK          trk[99];          _CDTRK          trk[99];
         OEMCHAR         path[MAX_PATH];          OEMCHAR         path[MAX_PATH];
         UINT            index;          UINT            idx;
         UINT8           curtrk;          UINT8           curtrk;
         UINT            curtype;          UINT            curtype;
         TEXTFILEH       tfh;          TEXTFILEH       tfh;
Line 308  static BRESULT opencue(SXSIDEV sxsi, con Line 308  static BRESULT opencue(SXSIDEV sxsi, con
   
         ZeroMemory(trk, sizeof(trk));          ZeroMemory(trk, sizeof(trk));
         path[0] = '\0';          path[0] = '\0';
         index = 0;          idx = 0;
         curtrk = 1;          curtrk = 1;
         curtype = 0x14;          curtype = 0x14;
         tfh = textfile_open(fname, 0x800);          tfh = textfile_open(fname, 0x800);
Line 332  static BRESULT opencue(SXSIDEV sxsi, con Line 332  static BRESULT opencue(SXSIDEV sxsi, con
                         }                          }
                 }                  }
                 else if ((argc >= 3) && (!milstr_cmp(argv[0], str_index))) {                  else if ((argc >= 3) && (!milstr_cmp(argv[0], str_index))) {
                         if (index < NELEMENTS(trk)) {                          if (idx < NELEMENTS(trk)) {
                                 trk[index].type = curtype;                                  trk[idx].type = curtype;
                                 trk[index].track = curtrk;                                  trk[idx].track = curtrk;
                                 trk[index].pos = getpos(argv[2]);                                  trk[idx].pos = getpos(argv[2]);
                                 index++;                                  idx++;
                         }                          }
                 }                  }
         }          }
         textfile_close(tfh);          textfile_close(tfh);
         return(openimg(sxsi, path, trk, index));          return(openimg(sxsi, path, trk, idx));
 }  }
   
 BRESULT sxsicd_open(SXSIDEV sxsi, const OEMCHAR *fname) {  BRESULT sxsicd_open(SXSIDEV sxsi, const OEMCHAR *fname) {

Removed from v.1.7  
changed lines
  Added in v.1.8


RetroPC.NET-CVS <cvs@retropc.net>