mirror of
https://github.com/libretro/snes9x.git
synced 2024-12-04 23:26:22 +00:00
Mac: Disable setting type and creator codes for now. It's not working on Catalina.
This commit is contained in:
parent
358370a36b
commit
c618f18b5d
@ -190,11 +190,11 @@ static NSURL *FindCustomFolder (const char *folderName)
|
||||
|
||||
void ChangeTypeAndCreator (const char *path, OSType type, OSType creator)
|
||||
{
|
||||
NSError *error = nil;
|
||||
if (![NSFileManager.defaultManager setAttributes:@{NSFileHFSCreatorCode: @(creator), NSFileHFSTypeCode: @(type)} ofItemAtPath:[NSString stringWithUTF8String:path] error:&error])
|
||||
{
|
||||
[[NSAlert alertWithError:error] runModal];
|
||||
}
|
||||
// NSError *error = nil;
|
||||
// if (![NSFileManager.defaultManager setAttributes:@{NSFileHFSCreatorCode: @(creator), NSFileHFSTypeCode: @(type)} ofItemAtPath:[NSString stringWithUTF8String:path] error:&error])
|
||||
// {
|
||||
// [[NSAlert alertWithError:error] runModal];
|
||||
// }
|
||||
}
|
||||
|
||||
static void AddFolderIcon (NSURL *fref, const char *folderName)
|
||||
|
Loading…
Reference in New Issue
Block a user