Skip to content
Snippets Groups Projects
Commit d2950f47 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Use kDownloadsFolderType for downloads.

Found by digging through headers... Apple doesn't document this.
parent 878c277a
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1648 passed
......@@ -936,7 +936,7 @@ static char *get_new_OSX_filename(char *fn, int fnlen, int type, int shared)
case SYNCTERM_DEFAULT_TRANSFER_PATH:
/* I'd love to use the "right" setting here, but don't know how */
if(FSFindFolder(shared?kLocalDomain:kUserDomain, kDesktopFolderType, kCreateFolder, &ref)!=noErr)
if(FSFindFolder(shared?kLocalDomain:kUserDomain, kDownloadsFolderType, kCreateFolder, &ref)!=noErr)
return(NULL);
if(FSRefMakePath(&ref, (unsigned char*)fn, fnlen)!=noErr)
return(NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment