Diff for /np2/macosx/np2opening.cpp between versions 1.4 and 1.5

version 1.4, 2003/11/13 18:17:42 version 1.5, 2004/01/11 16:58:47
Line 42  bool getResourceFile(const char* name, F Line 42  bool getResourceFile(const char* name, F
     CFURLRef    url = NULL;      CFURLRef    url = NULL;
     FSRef               fsr;      FSRef               fsr;
     bool                ret = false;      bool                ret = false;
           CFStringRef str = CFSTRj(name);
           
     url=CFBundleCopyResourceURL(CFBundleGetMainBundle(), CFSTRj(name), NULL, NULL);          if (!str) return (false);
       url=CFBundleCopyResourceURL(CFBundleGetMainBundle(), str, NULL, NULL);
           CFRelease(str);
     if (url) {      if (url) {
         if (CFURLGetFSRef(url, &fsr)) {          if (CFURLGetFSRef(url, &fsr)) {
             if (FSGetCatalogInfo(&fsr, kFSCatInfoNone, NULL, NULL, fsc, NULL) == noErr) {              if (FSGetCatalogInfo(&fsr, kFSCatInfoNone, NULL, NULL, fsc, NULL) == noErr) {

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


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