(Apple/iOS) Remove some unused settings - apple_use_tv_mode and ios_file_log

This commit is contained in:
twinaphex 2014-07-19 02:25:17 +02:00
parent fefc2f808c
commit 9ac52de4df
4 changed files with 7 additions and 20 deletions

View File

@ -300,8 +300,6 @@ static char** waiting_argv;
if (_wantReload)
apple_run_core(self.core, self.file.UTF8String);
else if(apple_use_tv_mode)
apple_run_core(nil, 0);
else
[[NSApplication sharedApplication] terminate:nil];

View File

@ -44,7 +44,6 @@
#endif
extern char** apple_argv;
extern bool apple_use_tv_mode;
extern NSString* apple_core;
extern id<RetroArch_Platform> apple_platform;

View File

@ -23,7 +23,6 @@
id<RetroArch_Platform> apple_platform;
#pragma mark EMULATION
bool apple_use_tv_mode;
NSString* apple_core;
void apple_rarch_exited(void)
@ -32,12 +31,7 @@ void apple_rarch_exited(void)
apple_core = 0;
[apple_platform unloadingCore:used_core];
#ifdef OSX
[used_core release];
#endif
if (apple_use_tv_mode)
apple_run_core(nil, 0);
}
void apple_run_core(NSString* core, const char* file)

View File

@ -64,24 +64,20 @@ const void* apple_get_frontend_settings(void)
const char *SUBGROUP_NAME = "Frontend";
settings[0] = setting_data_group_setting(ST_GROUP, "Frontend Settings");
settings[1] = setting_data_group_setting(ST_SUB_GROUP, "Frontend");
settings[2] = setting_data_bool_setting("ios_use_file_log", "Enable File Logging",
&apple_frontend_settings.logging_enabled, false, GROUP_NAME, SUBGROUP_NAME, apple_refresh_frontend_config);
settings[3] = setting_data_bool_setting("ios_tv_mode", "TV Mode", &apple_use_tv_mode, false, GROUP_NAME, SUBGROUP_NAME, NULL);
settings[4] = setting_data_string_setting(ST_STRING, "ios_btmode", "Bluetooth Input Type", apple_frontend_settings.bluetooth_mode,
settings[2] = setting_data_string_setting(ST_STRING, "ios_btmode", "Bluetooth Input Type", apple_frontend_settings.bluetooth_mode,
sizeof(apple_frontend_settings.bluetooth_mode), "none", GROUP_NAME, SUBGROUP_NAME, apple_refresh_frontend_config);
// Set ios_btmode options based on runtime environment
if (btstack_try_load())
settings[4].values = "icade|keyboard|small_keyboard|btstack";
settings[2].values = "icade|keyboard|small_keyboard|btstack";
else
settings[4].values = "icade|keyboard|small_keyboard";
settings[2].values = "icade|keyboard|small_keyboard";
settings[5] = setting_data_string_setting(ST_STRING, "ios_orientations", "Screen Orientations", apple_frontend_settings.orientations,
settings[3] = setting_data_string_setting(ST_STRING, "ios_orientations", "Screen Orientations", apple_frontend_settings.orientations,
sizeof(apple_frontend_settings.orientations), "both", GROUP_NAME, SUBGROUP_NAME, NULL);
settings[5].values = "both|landscape|portrait";
settings[6] = setting_data_group_setting(ST_END_SUB_GROUP, 0);
settings[7] = setting_data_group_setting(ST_END_GROUP, 0);
settings[3].values = "both|landscape|portrait";
settings[4] = setting_data_group_setting(ST_END_SUB_GROUP, 0);
settings[5] = setting_data_group_setting(ST_END_GROUP, 0);
}
return settings;