From b797c32f080fbdb69f4c84ace14a496b34423551 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Tue, 9 Jul 2013 07:07:15 +0000 Subject: Changing a lot of NSLogs to SysPrintf on OS X's PCSXR. Enable the emulog on OS X debug, and have create and use a log in ~/Library/Logs/PCSXR. Delete the hack that enabled PCSXR logs to go to the console in debug mode. Use modern syntax to create static NSArrays (and retain them in non-ARC code). Simplify the pauseSafeWithBlock to just create a new dispatch queue and run pauseSafe on the queue. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85931 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/PcsxrDiscHandler.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'macosx/PcsxrDiscHandler.m') diff --git a/macosx/PcsxrDiscHandler.m b/macosx/PcsxrDiscHandler.m index 77a35569..eceec784 100755 --- a/macosx/PcsxrDiscHandler.m +++ b/macosx/PcsxrDiscHandler.m @@ -21,10 +21,7 @@ @end @implementation PcsxrDiscHandler - @synthesize discURL = _discURL; -@synthesize discPath; - - (NSURL*)discURL { if (!_discURL) { @@ -33,11 +30,14 @@ return _discURL; } +@synthesize discPath; + + (NSArray *)supportedUTIs { static NSArray *utisupport = nil; if (utisupport == nil) { - utisupport = [[NSArray alloc] initWithObjects:@"com.alcohol-soft.mdfdisc", @"com.goldenhawk.cdrwin-cuesheet", @"com.apple.disk-image-ndif", @"public.iso-image", @"com.sony.psp.firmware", @"com.codeplex.pcsxr.compressed-bin-image", nil]; + utisupport = @[@"com.alcohol-soft.mdfdisc", @"com.goldenhawk.cdrwin-cuesheet", @"com.apple.disk-image-ndif", @"public.iso-image", @"com.sony.psp.firmware", @"com.codeplex.pcsxr.compressed-bin-image"]; + RETAINOBJNORETURN(utisupport); } return utisupport; } -- cgit v1.2.3