(iOS) Allow a custom display name to specified in a libretro core's info file.

This commit is contained in:
meancoot 2013-03-04 01:21:45 -05:00
parent 9914dff82a
commit e4596f20b9
3 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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;

View File

@ -22,6 +22,7 @@
@end
@interface RAModuleInfo : NSObject
@property (strong) NSString* displayName;
@property (strong) NSString* path;
@property (strong) NSString* configPath;
@property (strong) RAConfig* data;