mirror of
https://github.com/libretro/RetroArch
synced 2025-03-22 07:21:15 +00:00
(CocoaTouch) Use setting_is_of_numeric_type
This commit is contained in:
parent
bfbe4304ba
commit
c344a686cc
@ -412,9 +412,7 @@ static void *menu_item_init(ios_menu_item_t *item, unsigned type)
|
||||
|
||||
RAMenuItemGeneralSetting* item = [[RAMenuItemGeneralSetting alloc] initWithSetting:setting action:action];
|
||||
|
||||
if (item.setting->type == ST_INT ||
|
||||
item.setting->type == ST_UINT ||
|
||||
item.setting->type == ST_FLOAT)
|
||||
if (setting_is_of_numeric_type(item.setting))
|
||||
item.formatter = [[RANumberFormatter alloc] initWithSetting:item.setting];
|
||||
|
||||
return item;
|
||||
|
Loading…
x
Reference in New Issue
Block a user