summaryrefslogtreecommitdiff
path: root/macosx/PcsxrPluginHandler.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-11-26 23:29:22 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-11-26 23:29:22 +0000
commit26a39c749b337ef038a949447c5356ddaa0bc912 (patch)
tree8dfe87695579fae086972fc97c70dffb36b74e5e /macosx/PcsxrPluginHandler.m
parentc9289d55f08d262bfa5495de16b3b17c05a14741 (diff)
downloadpcsxr-26a39c749b337ef038a949447c5356ddaa0bc912.tar.gz
More work on OS X localization.
Some OS X bug fixes. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87971 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrPluginHandler.m')
-rwxr-xr-xmacosx/PcsxrPluginHandler.m11
1 files changed, 8 insertions, 3 deletions
diff --git a/macosx/PcsxrPluginHandler.m b/macosx/PcsxrPluginHandler.m
index 2c80cf91..6e99932b 100755
--- a/macosx/PcsxrPluginHandler.m
+++ b/macosx/PcsxrPluginHandler.m
@@ -9,7 +9,13 @@
#import "PcsxrPluginHandler.h"
#import "EmuThread.h"
+@interface PcsxrPluginHandler ()
+@property BOOL moveOK;
+@end
+
@implementation PcsxrPluginHandler
+@synthesize pluginName;
+@synthesize moveOK;
+ (NSArray *)supportedUTIs
{
@@ -37,8 +43,7 @@
- (id)init
{
- self = [self initWithWindowNibName:@"AddPluginSheet"];
- return self;
+ return self = [self initWithWindowNibName:@"AddPluginSheet"];
}
- (void)windowDidLoad
@@ -71,7 +76,7 @@
[[self window] orderOut:nil];
if (moveOK == YES) {
NSURL *supportURL = [[NSFileManager defaultManager] URLForDirectory:NSApplicationSupportDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:YES error:NULL];
- NSURL *url = [[supportURL URLByAppendingPathComponent:@"Pcsxr"] URLByAppendingPathComponent:@"PlugIns"];
+ NSURL *url = [[supportURL URLByAppendingPathComponent:@"Pcsxr" isDirectory:YES] URLByAppendingPathComponent:@"PlugIns" isDirectory:YES];
NSFileWrapper *wrapper = [[NSFileWrapper alloc] initWithPath:theFile];
NSString *dst = [[url URLByAppendingPathComponent:[wrapper filename]] path];