Mac: Disable setting type and creator codes for now. It's not working on Catalina.

This commit is contained in:
Michael Buckley 2019-11-11 17:46:41 -08:00
parent 358370a36b
commit c618f18b5d
1 changed files with 5 additions and 5 deletions

View File

@ -190,11 +190,11 @@ static NSURL *FindCustomFolder (const char *folderName)
void ChangeTypeAndCreator (const char *path, OSType type, OSType creator) void ChangeTypeAndCreator (const char *path, OSType type, OSType creator)
{ {
NSError *error = nil; // NSError *error = nil;
if (![NSFileManager.defaultManager setAttributes:@{NSFileHFSCreatorCode: @(creator), NSFileHFSTypeCode: @(type)} ofItemAtPath:[NSString stringWithUTF8String:path] error:&error]) // if (![NSFileManager.defaultManager setAttributes:@{NSFileHFSCreatorCode: @(creator), NSFileHFSTypeCode: @(type)} ofItemAtPath:[NSString stringWithUTF8String:path] error:&error])
{ // {
[[NSAlert alertWithError:error] runModal]; // [[NSAlert alertWithError:error] runModal];
} // }
} }
static void AddFolderIcon (NSURL *fref, const char *folderName) static void AddFolderIcon (NSURL *fref, const char *folderName)