mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Removes file icon from ROM list.
This commit is contained in:
parent
e1d6981559
commit
af3bef602f
@ -139,12 +139,17 @@
|
|||||||
- (UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
|
- (UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
|
||||||
{
|
{
|
||||||
RADirectoryItem* path = (RADirectoryItem*)[self itemForIndexPath:indexPath];
|
RADirectoryItem* path = (RADirectoryItem*)[self itemForIndexPath:indexPath];
|
||||||
|
static NSString *CellIdentifier = @"path";
|
||||||
|
|
||||||
UITableViewCell* cell = [self.tableView dequeueReusableCellWithIdentifier:@"path"];
|
UITableViewCell* cell = [self.tableView dequeueReusableCellWithIdentifier:CellIdentifier];
|
||||||
cell = (cell != nil) ? cell : [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"path"];
|
cell = (cell != nil) ? cell : [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
|
||||||
cell.textLabel.text = [path.path lastPathComponent];
|
cell.textLabel.text = [path.path lastPathComponent];
|
||||||
cell.accessoryType = (path.isDirectory) ? UITableViewCellAccessoryDisclosureIndicator : UITableViewCellAccessoryNone;
|
cell.accessoryType = (path.isDirectory) ? UITableViewCellAccessoryDisclosureIndicator : UITableViewCellAccessoryNone;
|
||||||
cell.imageView.image = [UIImage imageNamed:(path.isDirectory) ? @"ic_dir" : @"ic_file"];
|
|
||||||
|
if (path.isDirectory) {
|
||||||
|
cell.imageView.image = [UIImage imageNamed:@"ic_dir"];
|
||||||
|
}
|
||||||
|
|
||||||
return cell;
|
return cell;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user