Diff for /np2/macosx/macossub.cpp between versions 1.1.1.1 and 1.4

version 1.1.1.1, 2003/10/16 17:59:36 version 1.4, 2003/11/21 16:01:41
Line 20  UINT32 macos_gettick(void) { Line 20  UINT32 macos_gettick(void) {
         UnsignedWide current;          UnsignedWide current;
   
         Microseconds(&current);          Microseconds(&current);
         return((UINT32)(current.lo / 1000));          return((UINT32)((current.hi * 4294967) + (current.lo / 1000)));
 }  }
   
   
Line 69  static void char2str(char *dst, int size Line 69  static void char2str(char *dst, int size
         CFStringRef     cfsr;          CFStringRef     cfsr;
   
         cfsr = CFStringCreateWithCharacters(NULL, uni, unicnt);          cfsr = CFStringCreateWithCharacters(NULL, uni, unicnt);
         CFStringGetCString(cfsr, dst, size, CFStringGetSystemEncoding());      if (cfsr) {
         CFRelease(cfsr);          CFStringGetCString(cfsr, dst, size, CFStringGetSystemEncoding());
           CFRelease(cfsr);
       }
 }  }
   
 void *file_list1st(const char *dir, FLDATA *fl) {  void *file_list1st(const char *dir, FLDATA *fl) {
Line 152  void file_listclose(void *hdl) { Line 154  void file_listclose(void *hdl) {
         }          }
 }  }
   
   bool getLongFileName(char* dst, const char* path) {
           FSSpec  fss;
           Str255  fname;
       FSRef       fref;
       HFSUniStr255        name;
   
       if (*path == '\0') {
           return(false);
       }
           mkstr255(fname, path);
           FSMakeFSSpec(0, 0, fname, &fss);
       FSpMakeFSRef(&fss, &fref);
       if (FSGetCatalogInfo(&fref, kFSCatInfoNone, NULL, &name, NULL, NULL) != noErr) {
           return(false);
       }
       char2str(dst, 512, name.unicode, name.length);
       if (!dst) {
           return(false);
       }
       return(true);
   }
   
 #else  #else
   
 typedef struct {  typedef struct {
Line 246  void file_listclose(void *hdl) { Line 270  void file_listclose(void *hdl) {
         }          }
 }  }
   
   bool getLongFileName(char* dst, const char* path) {
       return(false);
   }
 #endif  #endif
   
   

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


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