diff options
Diffstat (limited to 'macosx/plugins/DFSound/macsrc/PluginController.m')
| -rwxr-xr-x | macosx/plugins/DFSound/macsrc/PluginController.m | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/macosx/plugins/DFSound/macsrc/PluginController.m b/macosx/plugins/DFSound/macsrc/PluginController.m index d57e63f2..c06914c6 100755 --- a/macosx/plugins/DFSound/macsrc/PluginController.m +++ b/macosx/plugins/DFSound/macsrc/PluginController.m @@ -56,12 +56,15 @@ void DoAbout() { // Get parent application instance NSBundle *bundle = [NSBundle bundleWithIdentifier:APP_ID]; - + // Get Credits.rtf NSString *path = [bundle pathForResource:@"Credits" ofType:@"rtf"]; NSAttributedString *credits; + if (!path) { + path = [bundle pathForResource:@"Credits" ofType:@"rtfd"]; + } if (path) { - credits = [[NSAttributedString alloc] initWithPath: path documentAttributes:NULL]; + credits = [[NSAttributedString alloc] initWithPath:path documentAttributes:NULL]; } else { credits = [[NSAttributedString alloc] initWithString:@""]; } @@ -70,14 +73,14 @@ void DoAbout() NSImage *icon = [[NSWorkspace sharedWorkspace] iconForFile:[bundle bundlePath]]; NSSize size = NSMakeSize(64, 64); [icon setSize:size]; - + NSDictionary *infoPaneDict = @{@"ApplicationName": [bundle objectForInfoDictionaryKey:@"CFBundleName"], - @"ApplicationIcon": icon, - @"ApplicationVersion": [bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], - @"Version": [bundle objectForInfoDictionaryKey:@"CFBundleVersion"], - @"Copyright": [bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], - @"Credits": credits}; + @"ApplicationIcon": icon, + @"ApplicationVersion": [bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"], + @"Version": [bundle objectForInfoDictionaryKey:@"CFBundleVersion"], + @"Copyright": [bundle objectForInfoDictionaryKey:@"NSHumanReadableCopyright"], + @"Credits": credits}; dispatch_async(dispatch_get_main_queue(), ^{ [NSApp orderFrontStandardAboutPanelWithOptions:infoPaneDict]; }); @@ -107,13 +110,14 @@ void ReadConfig(void) { NSDictionary *keyValues; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; - [defaults registerDefaults:@{PrefsKey: @{@"High Compatibility Mode": @YES, - @"SPU IRQ Wait": @YES, - @"XA Pitch": @NO, - @"Mono Sound Output": @NO, - @"Interpolation Quality": @0, - @"Reverb Quality": @1, - @"Volume": @3}}]; + [defaults registerDefaults: + @{PrefsKey: @{@"High Compatibility Mode": @YES, + @"SPU IRQ Wait": @YES, + @"XA Pitch": @NO, + @"Mono Sound Output": @NO, + @"Interpolation Quality": @0, + @"Reverb Quality": @1, + @"Volume": @3}}]; keyValues = [defaults dictionaryForKey:PrefsKey]; |
