Diff for /np2/generic/hostdrv.c between versions 1.4 and 1.6

version 1.4, 2004/01/10 17:24:01 version 1.6, 2004/01/12 08:01:00
Line 336  static BOOL pathishostdrv(INTRST is, SDA Line 336  static BOOL pathishostdrv(INTRST is, SDA
 }  }
   
   
 static BOOL read_data(UINT num, UINT32 pos, UINT size,  static BOOL read_data(UINT num, UINT32 pos, UINT size, UINT seg, UINT off) {
                                                                                                         UINT16 seg, UINT16 off) {  
   
         HDRVFILE        hdf;          HDRVFILE        hdf;
         FILEH           fh;          FILEH           fh;
Line 364  static BOOL read_data(UINT num, UINT32 p Line 363  static BOOL read_data(UINT num, UINT32 p
         return(SUCCESS);          return(SUCCESS);
 }  }
   
 static BOOL write_data(UINT num, UINT32 pos, UINT size,  static BOOL write_data(UINT num, UINT32 pos, UINT size, UINT seg, UINT off) {
                                                                                                         UINT16 seg, UINT16 off) {  
   
         HDRVFILE        hdf;          HDRVFILE        hdf;
         FILEH           fh;          FILEH           fh;
Line 470  static void change_currdir(INTRST intrst Line 468  static void change_currdir(INTRST intrst
         }          }
   
         ptr = intrst->filename_ptr;          ptr = intrst->filename_ptr;
           TRACEOUT(("change_currdir %s", intrst->filename_ptr));
         if (ptr[0] == '\0') {                                                   // るーと          if (ptr[0] == '\0') {                                                   // るーと
                 strcpy(intrst->filename_ptr, "\\");                  strcpy(intrst->filename_ptr, "\\");
                 strcpy(intrst->current_path, intrst->filename_ptr);                  strcpy(intrst->current_path, intrst->filename_ptr);
Line 734  static void rename_file(INTRST intrst) { Line 733  static void rename_file(INTRST intrst) {
                 return;                  return;
         }          }
   
           // ワイルドカードくるんで要修正…
         if ((hostdrvs_getrealpath(&hdp1, intrst->filename_ptr) != SUCCESS) ||          if ((hostdrvs_getrealpath(&hdp1, intrst->filename_ptr) != SUCCESS) ||
                 (hostdrvs_getrealpath(&hdp2, intrst->filename_ptr_2) != SUCCESS)) {                  (hostdrvs_getrealpath(&hdp2, intrst->filename_ptr_2) != SUCCESS)) {
                 fail(intrst, ERR_PATHNOTFOUND);                  fail(intrst, ERR_PATHNOTFOUND);
Line 743  static void rename_file(INTRST intrst) { Line 743  static void rename_file(INTRST intrst) {
         fail(intrst, ERR_ACCESSDENIED);          fail(intrst, ERR_ACCESSDENIED);
 }  }
   
   
 /* 13 */  /* 13 */
 static void delete_file(INTRST intrst) {  static void delete_file(INTRST intrst) {
   
Line 754  static void delete_file(INTRST intrst) { Line 753  static void delete_file(INTRST intrst) {
                 return;                  return;
         }          }
   
           // ワイルドカードくるんで要修正…
         if ((hostdrvs_getrealpath(&hdp, intrst->filename_ptr) != SUCCESS) ||          if ((hostdrvs_getrealpath(&hdp, intrst->filename_ptr) != SUCCESS) ||
                 (hdp.di.attr & 0x10)) {                  (hdp.di.attr & 0x10)) {
                 fail(intrst, ERR_PATHNOTFOUND);                  fail(intrst, ERR_PATHNOTFOUND);

Removed from v.1.4  
changed lines
  Added in v.1.6


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