(iOS) Allow a custom display name to specified in a libretro core's info file.
This commit is contained in:
parent
9914dff82a
commit
e4596f20b9
|
@ -18,6 +18,7 @@
|
|||
{
|
||||
RAModuleInfo* new = [RAModuleInfo new];
|
||||
|
||||
new.displayName = [theData getStringNamed:@"display_name" withDefault:[[thePath lastPathComponent] stringByDeletingPathExtension]];
|
||||
new.path = thePath;
|
||||
new.configPath = [NSString stringWithFormat:@"%@/%@.cfg", [RetroArch_iOS get].system_directory, [[thePath lastPathComponent] stringByDeletingPathExtension]];
|
||||
new.data = theData;
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
|
||||
unsigned section = _sectionMap[indexPath.section];
|
||||
RAModuleInfo* info = (RAModuleInfo*)[_modules[section] objectAtIndex:indexPath.row];
|
||||
cell.textLabel.text = [[info.path lastPathComponent] stringByDeletingPathExtension];
|
||||
cell.textLabel.text = info.displayName;
|
||||
cell.accessoryType = (info.data) ? UITableViewCellAccessoryDetailDisclosureButton : UITableViewCellAccessoryNone;
|
||||
|
||||
return cell;
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
@end
|
||||
|
||||
@interface RAModuleInfo : NSObject
|
||||
@property (strong) NSString* displayName;
|
||||
@property (strong) NSString* path;
|
||||
@property (strong) NSString* configPath;
|
||||
@property (strong) RAConfig* data;
|
||||
|
|
Loading…
Reference in New Issue