mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
(iOS) Start using setting_is_of_path_type
This commit is contained in:
parent
67ca5b60c1
commit
4c58f5897d
@ -608,10 +608,7 @@ static void *menu_item_init(ios_menu_item_t *item, unsigned type)
|
||||
RAMenuItemPathSetting __weak* weakSelf = self;
|
||||
rarch_setting_t *setting = self.setting;
|
||||
|
||||
if (setting && setting->type == ST_ACTION &&
|
||||
setting->flags & SD_FLAG_BROWSER_ACTION &&
|
||||
setting->action_toggle &&
|
||||
setting->change_handler )
|
||||
if (setting_is_of_path_type(setting))
|
||||
setting->action_toggle( setting, MENU_ACTION_RIGHT, false);
|
||||
|
||||
path = BOXSTRING(setting->value.string);
|
||||
@ -847,10 +844,7 @@ static void *menu_item_init(ios_menu_item_t *item, unsigned type)
|
||||
entry_label, path,
|
||||
path_buf, sizeof(path_buf));
|
||||
|
||||
if (setting && setting->type == ST_ACTION &&
|
||||
setting->flags & SD_FLAG_BROWSER_ACTION &&
|
||||
setting->action_toggle &&
|
||||
setting->change_handler )
|
||||
if (setting_is_of_path_type(setting))
|
||||
{
|
||||
[everything
|
||||
addObject:
|
||||
|
Loading…
Reference in New Issue
Block a user