SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit fc508427b8fedba133832b669f473eadc1635b3b parent 430e42fa72726cd4561b0a4e62bd0172d553791e Author: Lior Halphon <LIJI32@gmail.com> Date: Mon, 26 Aug 2024 20:45:49 +0300 More workarounds for the UTI bugs Diffstat:
| M | Cocoa/Document.m | 11 | +++++++++++ |
| M | Cocoa/Info.plist | 4 | +++- |
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/Cocoa/Document.m b/Cocoa/Document.m @@ -2785,4 +2785,15 @@ enum GBWindowResizeAction [self queueDebuggerCommand:sender.alternateTitle]; } ++ (NSArray<NSString *> *)readableTypes +{ + NSMutableSet *set = [NSMutableSet setWithArray:[super readableTypes]]; + for (NSString *type in @[@"gb", @"gbc", @"isx", @"gbs"]) { + [set addObject:(__bridge_transfer NSString *)UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, + (__bridge CFStringRef)type, + NULL)]; + } + return [set allObjects]; +} + @end diff --git a/Cocoa/Info.plist b/Cocoa/Info.plist @@ -22,7 +22,8 @@ <key>LSItemContentTypes</key> <array> <string>com.github.liji32.sameboy.gb</string> - <string>public.gbrom</string> + <string>public.gbrom</string> + <string>com.retroarch.gb</string> </array> <key>LSTypeIsPackage</key> <integer>0</integer> @@ -43,6 +44,7 @@ <key>LSItemContentTypes</key> <array> <string>com.github.liji32.sameboy.gbc</string> + <string>com.retroarch.gbc</string> </array> <key>LSTypeIsPackage</key> <integer>0</integer>
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.