mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 00:39:53 +00:00
(CocoaTouch) Fixes boolean values not being set
This commit is contained in:
parent
9744ce23ab
commit
5ab257f225
@ -143,13 +143,6 @@ uint32_t menu_entry_get_bool_value(uint32_t i)
|
||||
return *setting->value.boolean;
|
||||
}
|
||||
|
||||
void menu_entry_set_bool_value(uint32_t i, bool value)
|
||||
{
|
||||
rarch_setting_t *setting = menu_entry_get_setting(i);
|
||||
setting_set_with_string_representation(setting, value ? "true" : "false");
|
||||
menu_setting_generic(setting, false);
|
||||
}
|
||||
|
||||
struct string_list *menu_entry_enum_values(uint32_t i)
|
||||
{
|
||||
rarch_setting_t *setting = menu_entry_get_setting(i);
|
||||
|
@ -65,8 +65,6 @@ unsigned menu_entry_get_type_new(uint32_t i);
|
||||
|
||||
uint32_t menu_entry_get_bool_value(uint32_t i);
|
||||
|
||||
void menu_entry_set_bool_value(uint32_t i, bool new_val);
|
||||
|
||||
struct string_list *menu_entry_enum_values(uint32_t i);
|
||||
|
||||
void menu_entry_enum_set_value_with_string(uint32_t i, const char *s);
|
||||
|
@ -165,7 +165,6 @@ static void RunActionSheet(const char* title, const struct string_list* items,
|
||||
|
||||
- (void)handleBooleanSwitch:(UISwitch*)swt
|
||||
{
|
||||
menu_entry_set_bool_value(self.i, swt.on ? true : false);
|
||||
[self.main menuSelect: self.i];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user