mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-11-22 19:31:47 +00:00
allow mixed case disk image extensions
This commit is contained in:
parent
fd26ce35eb
commit
061ac16a0a
@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
- (void)loadDirectoryContents {
|
- (void)loadDirectoryContents {
|
||||||
NSArray *allFiles = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:basePath error:NULL];
|
NSArray *allFiles = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:basePath error:NULL];
|
||||||
diskImages = [allFiles pathsMatchingExtensions:[AppDelegate sharedInstance].diskImageExtensions];
|
diskImages = [allFiles filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"%@ containsObject: pathExtension.lowercaseString", [AppDelegate sharedInstance].diskImageExtensions]];
|
||||||
otherFiles = [allFiles filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(NSString* _Nonnull name, NSDictionary<NSString *,id> * _Nullable bindings) {
|
otherFiles = [allFiles filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(NSString* _Nonnull name, NSDictionary<NSString *,id> * _Nullable bindings) {
|
||||||
BOOL isDiskImage = [diskImages containsObject:name];
|
BOOL isDiskImage = [diskImages containsObject:name];
|
||||||
BOOL isDirectory;
|
BOOL isDirectory;
|
||||||
|
Loading…
Reference in New Issue
Block a user