(iOS) Menu - cleanups

This commit is contained in:
Twinaphex 2014-07-21 09:04:45 +02:00
parent c38d0a86d0
commit c1fa603a0f
2 changed files with 9 additions and 12 deletions

View File

@ -22,8 +22,6 @@
id<RetroArch_Platform> apple_platform;
#pragma mark EMULATION
void apple_rarch_exited(void)
{
[apple_platform unloadingCore];

View File

@ -814,12 +814,12 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
{
config_file_t* config = (config_file_t*)config_file_new(self.pathToSave.UTF8String);
if (!config)
config = config_file_new(0);
setting_data_save_config(setting_data_get_list(), config);
config_file_write(config, self.pathToSave.UTF8String);
config_file_free(config);
if (config)
{
setting_data_save_config(setting_data_get_list(), config);
config_file_write(config, self.pathToSave.UTF8String);
config_file_free(config);
}
}
}
@ -827,10 +827,9 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
{
if (self.isCustom && self.pathToSave)
{
[[NSFileManager defaultManager] removeItemAtPath:self.pathToSave error:nil];
self.pathToSave = false;
[self.navigationController popViewControllerAnimated:YES];
remove(self.pathToSave.UTF8String);
self.pathToSave = false;
[self.navigationController popViewControllerAnimated:YES];
}
}