OSX: take back 51826 for now, does not fix dalai's problem
This commit is contained in:
@@ -425,23 +425,14 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks)
|
|||||||
if (err != noErr)
|
if (err != noErr)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Get mounted volumes better method see: */
|
pathString = CFURLCopyFileSystemPath(cfURL, kCFURLPOSIXPathStyle);
|
||||||
/*https://developer.apple.com/library/mac/#documentation/CoreFOundation/Reference/CFURLRef/Reference/reference.html*/
|
|
||||||
|
|
||||||
CFURLEnumeratorResult result = kCFURLEnumeratorSuccess;
|
if (!CFStringGetCString(pathString, line, 256, kCFStringEncodingASCII))
|
||||||
CFURLEnumeratorRef volEnum = CFURLEnumeratorCreateForMountedVolumes(NULL, kCFURLEnumeratorSkipInvisibles, NULL);
|
continue;
|
||||||
|
fsmenu_insert_entry(fsmenu, FS_CATEGORY_SYSTEM, line, FS_INSERT_SORTED);
|
||||||
|
|
||||||
while (result != kCFURLEnumeratorEnd) {
|
CFRelease(pathString);
|
||||||
unsigned char defPath[FILE_MAX];
|
CFRelease(cfURL);
|
||||||
|
|
||||||
result = CFURLEnumeratorGetNextURL(volEnum, &cfURL, NULL);
|
|
||||||
if (result != kCFURLEnumeratorSuccess)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
CFURLGetFileSystemRepresentation(cfURL, false, (UInt8*)defPath, FILE_MAX);
|
|
||||||
fsmenu_insert_entry(fsmenu, FS_CATEGORY_SYSTEM, (char *)defPath, FS_INSERT_SORTED);
|
|
||||||
}
|
|
||||||
CFRelease(volEnum);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CFRelease(pathesArray);
|
CFRelease(pathesArray);
|
||||||
|
Reference in New Issue
Block a user