mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
(iOS) Get rid of now obsolete Diagnostic Logging
This commit is contained in:
parent
5e4125614a
commit
e3b7df108f
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user