(iOS) Get rid of now obsolete Diagnostic Logging

This commit is contained in:
Twinaphex 2014-07-19 02:59:03 +02:00
parent 5e4125614a
commit e3b7df108f

View File

@ -841,14 +841,8 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
rarch_setting_t* frontend_setting_data = (rarch_setting_t*)apple_get_frontend_settings();
if ((self = [super initWithGroup:frontend_setting_data]))
{
RAFrontendSettingsMenu* __weak weakSelf = self;
{
self.title = BOXSTRING("Frontend Settings");
RAMenuItemBasic* diagnostic_item = [RAMenuItemBasic itemWithDescription:BOXSTRING("Diagnostic Log")
action:^{ [weakSelf.navigationController pushViewController:[[RALogMenu alloc] initWithFile:[[RetroArch_iOS get].logPath UTF8String]] animated:YES]; }];
[self.sections insertObject:@[BOXSTRING(""), diagnostic_item] atIndex:0];
_coreConfigOptions = [NSMutableArray array];
[self.sections addObject:_coreConfigOptions];
@ -1096,43 +1090,6 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
@end
/*********************************************/
/* RALogMenu */
/* Displays a text file line-by-line. */
/*********************************************/
@implementation RALogMenu
- (id)initWithFile:(const char*)path
{
if ((self = [super initWithStyle:UITableViewStylePlain]))
{
FILE *file;
NSMutableArray* data = [NSMutableArray arrayWithObject:BOXSTRING("")];
fflush(stdout);
fflush(stderr);
file = fopen(path, "r");
if (file)
{
char buffer[1024];
while (fgets(buffer, 1024, file))
[data addObject:[RAMenuItemBasic itemWithDescription:BOXSTRING(buffer) action:NULL]];
fclose(file);
}
else
[data addObject:[RAMenuItemBasic itemWithDescription:@"Logging not enabled" action:NULL]];
[self.sections addObject:data];
}
return self;
}
@end
/*********************************************/
/* RAMenuItemStateSelect */
/* Menu item that allows save state slots */