ios: Rework RAModuleList so the name of the loaded game is displayed.
This commit is contained in:
parent
1178d82b5c
commit
efa0e6be31
|
@ -53,8 +53,7 @@
|
|||
[_modules addObject:[RAModuleInfo moduleWithPath:modulePath data:[[RAConfig alloc] initWithPath:baseName]]];
|
||||
}
|
||||
|
||||
[self setTitle:@"Choose Emulator"];
|
||||
|
||||
[self setTitle:[_game lastPathComponent]];
|
||||
return self;
|
||||
}
|
||||
|
||||
|
@ -75,6 +74,11 @@
|
|||
return _modules ? [_modules count] : 0;
|
||||
}
|
||||
|
||||
- (NSString*)tableView:(UITableView*)tableView titleForHeaderInSection:(NSInteger)section
|
||||
{
|
||||
return @"Choose Emulator";
|
||||
}
|
||||
|
||||
- (UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
UITableViewCell* cell = [self.tableView dequeueReusableCellWithIdentifier:@"module"];
|
||||
|
|
Loading…
Reference in New Issue