From 989fd841323a04f01f9ce0e899183684a1b431e5 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Sun, 10 Nov 2013 02:18:18 +0000 Subject: Fix use of deprecated functions. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87798 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/plugins/DFXVideo/macsrc/PluginConfigController.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'macosx/plugins/DFXVideo/macsrc/PluginConfigController.m') diff --git a/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m b/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m index f7982d36..baa118f8 100755 --- a/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m +++ b/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m @@ -135,8 +135,8 @@ void ReadConfig(void) @"Enable Hacks": @NO, @"Dither Mode": @1, @"Hacks": @((unsigned int)0), - @"VertexShader": [[selfBundle URLForResource:@"gpuPeteOGL2" withExtension:@"slv"] bookmarkDataWithOptions:NSURLBookmarkCreationPreferFileIDResolution includingResourceValuesForKeys:nil relativeToURL:nil error:nil], - @"FragmentShader": [[selfBundle URLForResource:@"gpuPeteOGL2" withExtension:@"slf"] bookmarkDataWithOptions:NSURLBookmarkCreationPreferFileIDResolution includingResourceValuesForKeys:nil relativeToURL:nil error:nil], + @"VertexShader": [[selfBundle URLForResource:@"gpuPeteOGL2" withExtension:@"slv"] bookmarkDataWithOptions:0 includingResourceValuesForKeys:nil relativeToURL:nil error:nil], + @"FragmentShader": [[selfBundle URLForResource:@"gpuPeteOGL2" withExtension:@"slf"] bookmarkDataWithOptions:0 includingResourceValuesForKeys:nil relativeToURL:nil error:nil], @"UseShader": @NO, @"ShaderQuality": @4, kWindowSize: NSStringFromSize(NSMakeSize(640, 480))}}]; @@ -234,8 +234,8 @@ void ReadConfig(void) writeDic[@"Hacks"] = @(hackValues); - writeDic[@"VertexShader"] = [vertexPath bookmarkDataWithOptions:NSURLBookmarkCreationPreferFileIDResolution includingResourceValuesForKeys:nil relativeToURL:nil error:nil]; - writeDic[@"FragmentShader"] = [fragmentPath bookmarkDataWithOptions:NSURLBookmarkCreationPreferFileIDResolution includingResourceValuesForKeys:nil relativeToURL:nil error:nil]; + writeDic[@"VertexShader"] = [vertexPath bookmarkDataWithOptions:0 includingResourceValuesForKeys:nil relativeToURL:nil error:nil]; + writeDic[@"FragmentShader"] = [fragmentPath bookmarkDataWithOptions:0 includingResourceValuesForKeys:nil relativeToURL:nil error:nil]; writeDic[kWindowSize] = NSStringFromSize(NSMakeSize(self.displayWidth.integerValue, self.displayHeight.integerValue)); // write to defaults @@ -288,7 +288,7 @@ void ReadConfig(void) { self.fragmentPath = _fragmentPath; if (_fragmentPath) { - [fragmentShaderViewablePath setTitleWithMnemonic:[fragmentPath lastPathComponent]]; + [[fragmentShaderViewablePath cell] setTitle:[fragmentPath lastPathComponent]]; [fragmentShaderViewablePath setToolTip:[fragmentPath path]]; } } @@ -297,7 +297,7 @@ void ReadConfig(void) { self.vertexPath = _vertexPath; if (_vertexPath) { - [vertexShaderViewablePath setTitleWithMnemonic:[vertexPath lastPathComponent]]; + [[vertexShaderViewablePath cell] setTitle:[vertexPath lastPathComponent]]; [vertexShaderViewablePath setToolTip:[vertexPath path]]; } } -- cgit v1.2.3