mirror of
https://github.com/libretro/Play-.git
synced 2025-01-21 07:56:18 +00:00
Start scanning from the user's Documents directory instead of its home directory on iOS.
Should fix issues where scanning for disc images can take a long time.
This commit is contained in:
parent
754fe909da
commit
bf293a69b7
@ -30,7 +30,7 @@ static CollectionView *instance = nil;
|
||||
|
||||
- (NSArray *) buildCollection
|
||||
{
|
||||
NSString* path = [@"~" stringByExpandingTildeInPath];
|
||||
NSString* path = [@"~/Documents" stringByExpandingTildeInPath];
|
||||
NSFileManager* localFileManager = [[NSFileManager alloc] init];
|
||||
|
||||
NSDirectoryEnumerator* dirEnum = [localFileManager enumeratorAtPath: path];
|
||||
|
@ -133,7 +133,7 @@ static NSString * const reuseIdentifier = @"coverCell";
|
||||
if ([segue.identifier isEqualToString:@"showEmulator"]) {
|
||||
NSIndexPath* indexPath = [[self.collectionView indexPathsForSelectedItems] objectAtIndex:0];
|
||||
NSString* filePath = [[self.coverView.diskImages objectAtIndex: indexPath.row] objectForKey:@"file"];
|
||||
NSString* homeDirPath = [@"~" stringByExpandingTildeInPath];
|
||||
NSString* homeDirPath = [@"~/Documents" stringByExpandingTildeInPath];
|
||||
NSString* absolutePath = [homeDirPath stringByAppendingPathComponent: filePath];
|
||||
EmulatorViewController* emulatorViewController = segue.destinationViewController;
|
||||
emulatorViewController.imagePath = absolutePath;
|
||||
|
Loading…
x
Reference in New Issue
Block a user