diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-11-10 02:18:18 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-11-10 02:18:18 +0000 |
| commit | 989fd841323a04f01f9ce0e899183684a1b431e5 (patch) | |
| tree | cfa814f3fc41dadb8f9c4ff861c08119c23cf385 /macosx/plugins/DFXVideo/macsrc/PluginConfigController.m | |
| parent | 9cce9612a1630618fe38d9320d148020098462ae (diff) | |
| download | pcsxr-989fd841323a04f01f9ce0e899183684a1b431e5.tar.gz | |
Fix use of deprecated functions.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87798 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/DFXVideo/macsrc/PluginConfigController.m')
| -rwxr-xr-x | macosx/plugins/DFXVideo/macsrc/PluginConfigController.m | 12 |
1 files changed, 6 insertions, 6 deletions
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]]; } } |
