summaryrefslogtreecommitdiff
path: root/macosx/plugins/DFNet/macsrc
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-03-03 19:22:10 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-03-03 19:22:10 +0000
commit95d8573be44b40a827f244d920b57d75ecff2a5c (patch)
treee0bc3ffaa4ad4a628965aca16b8551b33c78c46c /macosx/plugins/DFNet/macsrc
parent655115f51bf9a30a3950f44196f32bde40743e94 (diff)
OS X: Check for an RTFD credits in the plug-ins.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@89252 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/DFNet/macsrc')
-rwxr-xr-xmacosx/plugins/DFNet/macsrc/PluginConfigController.m22
1 files changed, 12 insertions, 10 deletions
diff --git a/macosx/plugins/DFNet/macsrc/PluginConfigController.m b/macosx/plugins/DFNet/macsrc/PluginConfigController.m
index 67bd30a6..34b9ca6d 100755
--- a/macosx/plugins/DFNet/macsrc/PluginConfigController.m
+++ b/macosx/plugins/DFNet/macsrc/PluginConfigController.m
@@ -46,28 +46,30 @@ void AboutDlgProc()
{
// 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:@""];
}
-
+
// Get Application Icon
NSImage *icon = [[NSWorkspace sharedWorkspace] iconForFile:[bundle bundlePath]];
[icon setSize:NSMakeSize(64, 64)];
-
+
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];
});