diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-12-07 04:39:34 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-12-07 04:39:34 +0000 |
| commit | ef551a9d0e9920b742743f4f50d1a80536fb6606 (patch) | |
| tree | ccf7a5b215fe020c1b6506ee07f60636854053be | |
| parent | c6cbf03a5a2d34c3685a028b6d84ad10272efa55 (diff) | |
| download | pcsxr-ef551a9d0e9920b742743f4f50d1a80536fb6606.tar.gz | |
Use actual UTIs of most of the disk image formats. Not .bin, though. That's used by com.apple.macbinary-archive.
Change the UTI for the broad disk images into something more narrow (.mdf).
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72944 e17a0e51-4ae3-4d35-97c3-1a29b211df97
| -rw-r--r-- | macosx/Info.plist | 5 | ||||
| -rw-r--r-- | macosx/PcsxrController.m | 4 |
2 files changed, 3 insertions, 6 deletions
diff --git a/macosx/Info.plist b/macosx/Info.plist index ade87f1f..f47522d3 100644 --- a/macosx/Info.plist +++ b/macosx/Info.plist @@ -229,15 +229,12 @@ <key>UTTypeDescription</key> <string>PlayStation Disc</string> <key>UTTypeIdentifier</key> - <string>com.codeplex.pcsxr.psxdiscfile</string> + <string>com.codeplex.pcsxr.mdfdisc</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename-extension</key> <array> - <string>bin</string> - <string>img</string> <string>mdf</string> - <string>iso</string> </array> </dict> </dict> diff --git a/macosx/PcsxrController.m b/macosx/PcsxrController.m index eb3b0730..987d9820 100644 --- a/macosx/PcsxrController.m +++ b/macosx/PcsxrController.m @@ -33,7 +33,7 @@ NSString *saveStatePath; [openDlg setCanChooseFiles:YES]; [openDlg setCanChooseDirectories:NO]; - [openDlg setAllowedFileTypes:[NSArray arrayWithObjects:@"com.codeplex.pcsxr.psxdiscfile", @"bin", @"img", @"mdf", @"iso", nil]]; + [openDlg setAllowedFileTypes:[NSArray arrayWithObjects:@"com.codeplex.pcsxr.mdfdisc", @"bin", @"com.apple.disk-image-ndif", @"public.iso-image", nil]]; if ([openDlg runModal] == NSFileHandlingPanelOKButton) { NSArray* files = [openDlg URLs]; @@ -113,7 +113,7 @@ NSString *saveStatePath; [openDlg setCanChooseFiles:YES]; [openDlg setCanChooseDirectories:NO]; - [openDlg setAllowedFileTypes:[NSArray arrayWithObjects:@"com.codeplex.pcsxr.psxdiscfile", @"bin", @"img", @"mdf", @"iso", nil]]; + [openDlg setAllowedFileTypes:[NSArray arrayWithObjects:@"com.codeplex.pcsxr.mdfdisc", @"bin", @"com.apple.disk-image-ndif", @"public.iso-image", nil]]; if ([openDlg runModal] == NSFileHandlingPanelOKButton) { NSArray* urls = [openDlg URLs]; |
