mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(iOS) Menu - cleanups
This commit is contained in:
parent
c38d0a86d0
commit
c1fa603a0f
@ -22,8 +22,6 @@
|
||||
|
||||
id<RetroArch_Platform> apple_platform;
|
||||
|
||||
#pragma mark EMULATION
|
||||
|
||||
void apple_rarch_exited(void)
|
||||
{
|
||||
[apple_platform unloadingCore];
|
||||
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user