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

version 1.5, 2003/11/21 16:01:41 version 1.7, 2004/01/11 16:58:47
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 140  int file_getftype(char* filename) {  Line 140  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.7


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