summaryrefslogtreecommitdiff
path: root/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-08-22 20:05:38 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-08-22 20:05:38 +0000
commit9628a367530657e7fefb17be0a125dbe3f5d7614 (patch)
treebaceff9a417edb789ad675372d364bb33aea82c4 /macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m
parent105868aa85053f9597d6099e8d25d6ef8e0f992a (diff)
downloadpcsxr-9628a367530657e7fefb17be0a125dbe3f5d7614.tar.gz
Use SDL2.framework from /Library/Frameworks on OS X instead of miniSDL.
Remove SDL code on OS X's plug-ins subdirectory. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@86848 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m')
-rwxr-xr-xmacosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m17
1 files changed, 3 insertions, 14 deletions
diff --git a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m
index 12994a8e..d84ad6bc 100755
--- a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m
+++ b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m
@@ -304,21 +304,8 @@ void ReadConfig(void)
- (IBAction)ok:(id)sender
{
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
-
-#if 0
- unsigned int hackValues = 0;
- NSArray *views = [hacksMatrix cells];
-
- for (NSControl *control in views) {
- hackValues |= [control intValue] << ([control tag] - 1);
- }
-#endif
- //self.keyValues = [NSMutableDictionary dictionaryWithDictionary: [[NSUserDefaults standardUserDefaults] dictionaryForKey:PrefsKey]];
-
NSMutableDictionary *writeDic = [NSMutableDictionary dictionaryWithDictionary:keyValues];
- //[writeDic setObject:@(hackValues) forKey:kHacks];
- [writeDic setObject:([hackEnable integerValue] ? @YES : @NO) forKey:kHacksEnable];
[writeDic setObject:([fpsCounter integerValue] ? @YES : @NO) forKey:kFPSCounter];
[writeDic setObject:[NSArchiver archivedDataWithRootObject:[scanlineColorWell color]] forKey:@"Scanline Color"];
[writeDic setObject:([frameSkipping integerValue] ? @YES : @NO) forKey:kFrameSkipping];
@@ -437,7 +424,9 @@ void ReadConfig(void)
for (NSControl *control in [hacksMatrix cells]) {
hackValues |= [control intValue] << ([control tag] - 1);
}
- [self.keyValues setObject:@(hackValues) forKey:kHacks];
+ NSMutableDictionary *writeDic = self.keyValues;
+ [writeDic setObject:@(hackValues) forKey:kHacks];
+ [writeDic setObject:([hackEnable integerValue] ? @YES : @NO) forKey:kHacksEnable];
}
[sheet orderOut:nil];
}