mirror of https://github.com/snes9xgit/snes9x.git
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)
|
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)
|
||||||
|
|
Loading…
Reference in New Issue