Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.
My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
diff --git a/apps/menu.c b/apps/menu.c index 5b8b121..66a931e 100644 static int talk_menu_item(int selected_item, void *data) void do_setting_from_menu(const struct menu_item_ex *temp, struct viewport parent[NB_SCREENS]) { - int setting_id, oldval; + int setting_id; const struct settings_list *setting = find_setting(temp->variable, &setting_id); char *title; char padded_title[MAX_PATH]; - int var_type = setting->flags&F_T_MASK; - if (var_type == F_T_INT || var_type == F_T_UINT) - { - oldval = *(int*)setting->setting; - } - else if (var_type == F_T_BOOL) - { - oldval = *(bool*)setting->setting; - } - else - oldval = 0; + if ((temp->flags&MENU_TYPE_MASK) == MT_SETTING_W_TEXT) title = temp->callback_and_desc->desc; else |