From 6e2f3f0721263cfdd3c8f866b9cf3cb693b2f8ac Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Mon, 28 Jan 2013 16:51:10 +0000 Subject: Messing around with the file handling XIBs. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@82566 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/PcsxrPluginHandler.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'macosx/PcsxrPluginHandler.m') diff --git a/macosx/PcsxrPluginHandler.m b/macosx/PcsxrPluginHandler.m index 9fcad0ee..a025f111 100755 --- a/macosx/PcsxrPluginHandler.m +++ b/macosx/PcsxrPluginHandler.m @@ -58,14 +58,14 @@ if (![self window]) [NSBundle loadNibNamed:@"AddPluginSheet" owner:self]; - [pluginName setObjectValue:[[NSURL fileURLWithPath:theFile] lastPathComponent]]; + [pluginName setObjectValue:[theFile lastPathComponent]]; [NSApp runModalForWindow:[self window]]; - [[self window] orderOut:self]; + [[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/PlugIns"]; + NSURL *url = [[supportURL URLByAppendingPathComponent:@"Pcsxr"] URLByAppendingPathComponent:@"PlugIns"]; NSFileWrapper *wrapper = [[NSFileWrapper alloc] initWithPath:theFile]; NSString *dst = [NSString stringWithFormat:@"%@/%@", -- cgit v1.2.3