Diff for /np2/macosx/fdefine.cpp between versions 1.5 and 1.8

version 1.5, 2003/11/21 16:01:41 version 1.8, 2004/01/23 17:37:39
Line 8 Line 8
 void Setfiletype(int ftype, OSType *creator, OSType *fileType) {  void Setfiletype(int ftype, OSType *creator, OSType *fileType) {
   
         *creator = 'SMil';          *creator = 'SMil';
         *fileType = '????';  //      *fileType = '????';
   
         switch(ftype) {          switch(ftype) {
 //              case FTYPE_SMIL:                        // システム予約  //              case FTYPE_SMIL:                        // システム予約
Line 111  static int GetFileExt(char* filename) {  Line 111  static int GetFileExt(char* filename) { 
     else if ((!milstr_cmp(p, str_hdi))) {      else if ((!milstr_cmp(p, str_hdi))) {
                         ftype = FTYPE_HDI;                          ftype = FTYPE_HDI;
                 }                  }
       else if ((!milstr_cmp(p, str_hdd))) {
                           ftype = FTYPE_HDD;
                   }
     else if ((!milstr_cmp(p, "xdf")) || (!milstr_cmp(p, "dup")) || (!milstr_cmp(p, "hdm"))) {      else if ((!milstr_cmp(p, "xdf")) || (!milstr_cmp(p, "dup")) || (!milstr_cmp(p, "hdm"))) {
         ftype = FTYPE_BETA;          ftype = FTYPE_BETA;
     }      }
Line 140  int file_getftype(char* filename) {  Line 143  int file_getftype(char* filename) { 
         FInfo   fndrInfo;          FInfo   fndrInfo;
     int         ftype;      int         ftype;
   
     mkstr255(fname, filename);      ftype = GetFileExt(filename);
     FSMakeFSSpec(0, 0, fname, &fss);  
     if (FSpGetFInfo(&fss, &fndrInfo) != noErr) {  
         return(FTYPE_NONE);  
     }  
     ftype = Getfiletype(&fndrInfo);  
         if (ftype == FTYPE_NONE) {          if (ftype == FTYPE_NONE) {
         ftype = GetFileExt(filename);          mkstr255(fname, filename);
           FSMakeFSSpec(0, 0, fname, &fss);
           if (FSpGetFInfo(&fss, &fndrInfo) != noErr) {
               return(FTYPE_NONE);
           }
           ftype = Getfiletype(&fndrInfo);
     }      }
         return(ftype);          return(ftype);
 }  }

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


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