equal
deleted
inserted
replaced
213 |
213 |
214 NSString *filePath = [[NSString alloc] initWithFormat:@"%@/%@",SAVES_DIRECTORY(),[self.listOfSavegames objectAtIndex:[indexPath row]]]; |
214 NSString *filePath = [[NSString alloc] initWithFormat:@"%@/%@",SAVES_DIRECTORY(),[self.listOfSavegames objectAtIndex:[indexPath row]]]; |
215 [bridge startSaveGame:filePath]; |
215 [bridge startSaveGame:filePath]; |
216 [filePath release]; |
216 [filePath release]; |
217 [bridge release]; |
217 [bridge release]; |
218 /* // also modify GameConfigViewController.m |
218 |
|
219 // reload needed because when ending game the entry remains there |
|
220 [self viewWillAppear:YES]; |
|
221 |
|
222 /* // also modify GameConfigViewController.m |
219 StatsPageViewController *statsPage = [[StatsPageViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
223 StatsPageViewController *statsPage = [[StatsPageViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
220 statsPage.modalTransitionStyle = UIModalTransitionStyleCoverVertical; |
224 statsPage.modalTransitionStyle = UIModalTransitionStyleCoverVertical; |
221 if ([statsPage respondsToSelector:@selector(setModalPresentationStyle:)]) |
225 if ([statsPage respondsToSelector:@selector(setModalPresentationStyle:)]) |
222 statsPage.modalPresentationStyle = UIModalPresentationPageSheet; |
226 statsPage.modalPresentationStyle = UIModalPresentationPageSheet; |
223 // avoid showing the stat page immediately, but wait for 3 seconds |
227 // avoid showing the stat page immediately, but wait for 3 seconds |
238 } else { |
242 } else { |
239 statsPage.statsArray = stats; |
243 statsPage.statsArray = stats; |
240 [statsPage.tableView reloadData]; |
244 [statsPage.tableView reloadData]; |
241 [statsPage viewWillAppear:YES]; |
245 [statsPage viewWillAppear:YES]; |
242 }*/ |
246 }*/ |
243 // reload needed because when ending game the entry remains there |
247 |
244 [self.tableView reloadData]; |
|
245 } |
248 } |
246 |
249 |
247 #pragma mark - |
250 #pragma mark - |
248 #pragma mark editableCellView delegate |
251 #pragma mark editableCellView delegate |
249 // rename old file if names differ |
252 // rename old file if names differ |