summaryrefslogtreecommitdiff
path: root/macosx/plugins/DFSound/macsrc
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-08-29 23:36:29 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-08-29 23:36:29 +0000
commit460faedba401d0f1a754e8d3b9d4fd1c853d9413 (patch)
tree64f2b3f0e960c0da80df729ead41a9a1165b37dc /macosx/plugins/DFSound/macsrc
parent06f5ec54da4efb1383298da7c2d20805c5304dd1 (diff)
downloadpcsxr-460faedba401d0f1a754e8d3b9d4fd1c853d9413.tar.gz
Re-working how DFInput on OS X stores preferences, making it match the rest of the OS X plug-ins.
Do some localization support work on DFInput on OS X. Bump the version in the info.plist file for DFInput to 1.5. Other code changes and improvements on the Mac port. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87023 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/DFSound/macsrc')
-rwxr-xr-xmacosx/plugins/DFSound/macsrc/NamedSlider.h2
-rwxr-xr-xmacosx/plugins/DFSound/macsrc/NamedSlider.m11
-rwxr-xr-xmacosx/plugins/DFSound/macsrc/PluginController.m8
3 files changed, 14 insertions, 7 deletions
diff --git a/macosx/plugins/DFSound/macsrc/NamedSlider.h b/macosx/plugins/DFSound/macsrc/NamedSlider.h
index 0494b83e..95ec014c 100755
--- a/macosx/plugins/DFSound/macsrc/NamedSlider.h
+++ b/macosx/plugins/DFSound/macsrc/NamedSlider.h
@@ -8,6 +8,6 @@
NSArray *strings;
__unsafe_unretained Class pluginClass;
}
-@property (retain) NSArray *strings;
+@property (arcretain) NSArray *strings;
@property (unsafe_unretained) Class pluginClass;
@end
diff --git a/macosx/plugins/DFSound/macsrc/NamedSlider.m b/macosx/plugins/DFSound/macsrc/NamedSlider.m
index 55322742..8411481d 100755
--- a/macosx/plugins/DFSound/macsrc/NamedSlider.m
+++ b/macosx/plugins/DFSound/macsrc/NamedSlider.m
@@ -2,18 +2,18 @@
@implementation NamedSlider
@synthesize pluginClass;
+@synthesize strings;
#if !__has_feature(objc_arc)
- (void)dealloc
{
self.strings = nil;
+ self.pluginClass = nil;
[super dealloc];
}
#endif
-@synthesize strings;
-
- (NSString *)stringValue
{
NSInteger index = [self integerValue];
@@ -34,4 +34,11 @@
[self sendAction:[self action] to:[self target]];
}
+- (void)setIntegerValue:(NSInteger)anInteger
+{
+ [super setIntegerValue:anInteger];
+ [self sendAction:[self action] to:[self target]];
+}
+
+
@end
diff --git a/macosx/plugins/DFSound/macsrc/PluginController.m b/macosx/plugins/DFSound/macsrc/PluginController.m
index 3f521985..c03c4eaf 100755
--- a/macosx/plugins/DFSound/macsrc/PluginController.m
+++ b/macosx/plugins/DFSound/macsrc/PluginController.m
@@ -122,17 +122,17 @@ void ReadConfig(void)
@3, @"Volume",
nil], PrefsKey,
nil]];
-
+
keyValues = [defaults dictionaryForKey:PrefsKey];
-
+
iUseTimer = [[keyValues objectForKey:@"High Compatibility Mode"] boolValue] ? 2 : 0;
iSPUIRQWait = [[keyValues objectForKey:@"SPU IRQ Wait"] boolValue];
iDisStereo = [[keyValues objectForKey:@"Mono Sound Output"] boolValue];
iXAPitch = [[keyValues objectForKey:@"XA Pitch"] boolValue];
-
+
iUseInterpolation = [[keyValues objectForKey:@"Interpolation Quality"] intValue];
iUseReverb = [[keyValues objectForKey:@"Reverb Quality"] intValue];
-
+
iVolume = 5 - [[keyValues objectForKey:@"Volume"] intValue];
}