ios: Rework RAModuleList so the name of the loaded game is displayed.

This commit is contained in:
meancoot 2013-03-01 19:08:43 -05:00
parent 1178d82b5c
commit efa0e6be31
1 changed files with 6 additions and 2 deletions

View File

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