summaryrefslogtreecommitdiff
path: root/macosx/plugins/DFSound/macsrc/PluginController.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-10-13 22:07:53 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-10-13 22:07:53 +0000
commit54a898fced26e941c1dfd28db46bcb25b1d12eae (patch)
tree13be7abcb9b915999e85671617b934ba1317d4d7 /macosx/plugins/DFSound/macsrc/PluginController.m
parent949b0bc5002cd94dcbf37ef23f6c32d41d62c704 (diff)
We don't need mutable dictionaries when setting plug-in defaults.
Set proper classes in the DFSound Info.plist files. Fix a missing default setting in the sound plug-ins. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@80391 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/DFSound/macsrc/PluginController.m')
-rw-r--r--macosx/plugins/DFSound/macsrc/PluginController.m56
1 files changed, 28 insertions, 28 deletions
diff --git a/macosx/plugins/DFSound/macsrc/PluginController.m b/macosx/plugins/DFSound/macsrc/PluginController.m
index 0d26982f..dac102f5 100644
--- a/macosx/plugins/DFSound/macsrc/PluginController.m
+++ b/macosx/plugins/DFSound/macsrc/PluginController.m
@@ -35,9 +35,9 @@ extern const char* PLUGLOC(char* toloc);
#endif
#ifdef USEOPENAL
-#define APP_ID @"net.sf.peops.ALPlugin"
+#define APP_ID @"net.sf.peops.SPUALPlugin"
#else
-#define APP_ID @"net.sf.peops.SPUPlugin"
+#define APP_ID @"net.sf.peops.SPUSDLPlugin"
#endif
#define PrefsKey APP_ID @" Settings"
@@ -54,8 +54,7 @@ void DoAbout()
NSString *path = [bundle pathForResource:@"Credits" ofType:@"rtf"];
NSAttributedString *credits;
if (path) {
- credits = [[[NSAttributedString alloc] initWithPath: path
- documentAttributes:NULL] autorelease];
+ credits = [[[NSAttributedString alloc] initWithPath: path documentAttributes:NULL] autorelease];
} else {
credits = [[[NSAttributedString alloc] initWithString:@""] autorelease];
}
@@ -66,13 +65,13 @@ void DoAbout()
[icon setSize:size];
[app orderFrontStandardAboutPanelWithOptions:[NSDictionary dictionaryWithObjectsAndKeys:
- [bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName",
- icon, @"ApplicationIcon",
- [bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion",
- [bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version",
- [bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright",
- credits, @"Credits",
- nil]];
+ [bundle objectForInfoDictionaryKey:@"CFBundleName"], @"ApplicationName",
+ icon, @"ApplicationIcon",
+ [bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], @"ApplicationVersion",
+ [bundle objectForInfoDictionaryKey:@"CFBundleVersion"], @"Version",
+ [bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], @"Copyright",
+ credits, @"Credits",
+ nil]];
}
@@ -103,15 +102,16 @@ void ReadConfig(void)
NSDictionary *keyValues;
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults registerDefaults:[NSDictionary dictionaryWithObjectsAndKeys:
- [NSMutableDictionary dictionaryWithObjectsAndKeys:
- [NSNumber numberWithBool:YES], @"High Compatibility Mode",
- [NSNumber numberWithBool:YES], @"SPU IRQ Wait",
- [NSNumber numberWithBool:NO], @"XA Pitch",
- [NSNumber numberWithInt:0], @"Interpolation Quality",
- [NSNumber numberWithInt:1], @"Reverb Quality",
- [NSNumber numberWithInt:3], @"Volume",
- nil], PrefsKey,
- nil]];
+ [NSDictionary dictionaryWithObjectsAndKeys:
+ [NSNumber numberWithBool:YES], @"High Compatibility Mode",
+ [NSNumber numberWithBool:YES], @"SPU IRQ Wait",
+ [NSNumber numberWithBool:NO], @"XA Pitch",
+ [NSNumber numberWithBool:NO], @"Mono Sound Output",
+ [NSNumber numberWithInt:0], @"Interpolation Quality",
+ [NSNumber numberWithInt:1], @"Reverb Quality",
+ [NSNumber numberWithInt:3], @"Volume",
+ nil], PrefsKey,
+ nil]];
keyValues = [defaults dictionaryForKey:PrefsKey];
@@ -138,10 +138,10 @@ void ReadConfig(void)
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSMutableDictionary *writeDic = [NSMutableDictionary dictionaryWithDictionary:keyValues];
- [writeDic setObject:[NSNumber numberWithInt:[hiCompBox intValue]] forKey:@"High Compatibility Mode"];
- [writeDic setObject:[NSNumber numberWithInt:[irqWaitBox intValue]] forKey:@"SPU IRQ Wait"];
- [writeDic setObject:[NSNumber numberWithInt:[monoSoundBox intValue]] forKey:@"Mono Sound Output"];
- [writeDic setObject:[NSNumber numberWithInt:[xaSpeedBox intValue]] forKey:@"XA Pitch"];
+ [writeDic setObject:[NSNumber numberWithBool:[hiCompBox intValue]] forKey:@"High Compatibility Mode"];
+ [writeDic setObject:[NSNumber numberWithBool:[irqWaitBox intValue]] forKey:@"SPU IRQ Wait"];
+ [writeDic setObject:[NSNumber numberWithBool:[monoSoundBox intValue]] forKey:@"Mono Sound Output"];
+ [writeDic setObject:[NSNumber numberWithBool:[xaSpeedBox intValue]] forKey:@"XA Pitch"];
[writeDic setObject:[NSNumber numberWithInt:[interpolValue intValue]] forKey:@"Interpolation Quality"];
[writeDic setObject:[NSNumber numberWithInt:[reverbValue intValue]] forKey:@"Reverb Quality"];
@@ -175,10 +175,10 @@ void ReadConfig(void)
[keyValues release];
keyValues = [[defaults dictionaryForKey:PrefsKey] mutableCopy];
- [hiCompBox setIntValue:[[keyValues objectForKey:@"High Compatibility Mode"] intValue]];
- [irqWaitBox setIntValue:[[keyValues objectForKey:@"SPU IRQ Wait"] intValue]];
- [monoSoundBox setIntValue:[[keyValues objectForKey:@"Mono Sound Output"] intValue]];
- [xaSpeedBox setIntValue:[[keyValues objectForKey:@"XA Pitch"] intValue]];
+ [hiCompBox setIntValue:[[keyValues objectForKey:@"High Compatibility Mode"] boolValue]];
+ [irqWaitBox setIntValue:[[keyValues objectForKey:@"SPU IRQ Wait"] boolValue]];
+ [monoSoundBox setIntValue:[[keyValues objectForKey:@"Mono Sound Output"] boolValue]];
+ [xaSpeedBox setIntValue:[[keyValues objectForKey:@"XA Pitch"] boolValue]];
[interpolValue setIntValue:[[keyValues objectForKey:@"Interpolation Quality"] intValue]];
[reverbValue setIntValue:[[keyValues objectForKey:@"Reverb Quality"] intValue]];