From d6942932d64a02aa92b1e04e91f6126f33fdb05e Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Sun, 20 Jul 2014 05:09:43 +0000 Subject: OS X: Move source files to their own folder. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@90999 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/PcsxrDiscHandler.m | 58 ----------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100755 macosx/PcsxrDiscHandler.m (limited to 'macosx/PcsxrDiscHandler.m') diff --git a/macosx/PcsxrDiscHandler.m b/macosx/PcsxrDiscHandler.m deleted file mode 100755 index 996fdab3..00000000 --- a/macosx/PcsxrDiscHandler.m +++ /dev/null @@ -1,58 +0,0 @@ -// -// PcsxrDiscHandler.m -// Pcsxr -// -// Created by Charles Betts on 12/11/11. -// Copyright (c) 2011 __MyCompanyName__. All rights reserved. -// - -#import "PcsxrDiscHandler.h" -#import "EmuThread.h" -#include "psxcommon.h" -#include "plugins.h" -#include "cdrom.h" -#import "RecentItemsMenu.h" -#import "PcsxrController.h" - -@interface PcsxrDiscHandler () -@property (nonatomic, strong) NSURL *discURL; -@property (weak) NSString *discPath; -@end - -@implementation PcsxrDiscHandler -@synthesize discURL = _discURL; -- (NSURL*)discURL -{ - if (!_discURL) { - self.discURL = [NSURL fileURLWithPath:discPath]; - } - return _discURL; -} - -@synthesize discPath; - -+ (NSArray *)supportedUTIs -{ - static NSArray *utisupport = nil; - if (utisupport == 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", @"com.coppertino.vox.cue", - @"com.apple.macbinary-​archive"]; - } - return utisupport; -} - -- (BOOL)handleFile:(NSString *)theFile -{ - self.discPath = theFile; - PcsxrController *appDelegate = [NSApp delegate]; - if ([EmuThread active] == YES && !UsingIso()) { - return NO; - } - [appDelegate runURL:[self discURL]]; - [[appDelegate recentItems] addRecentItem:[self discURL]]; - return YES; -} - -@end -- cgit v1.2.3