mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-28 21:55:27 +00:00
Try to optimize menu_setting_get_label somewhat
This commit is contained in:
parent
2eea70c270
commit
f1826ce9ec
@ -819,7 +819,6 @@ void setting_get_string_representation(void *data, char *s, size_t len)
|
||||
setting->get_string_representation(setting, s, len);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* setting_action_start_savestates:
|
||||
* @data : pointer to setting
|
||||
@ -1372,8 +1371,8 @@ void menu_setting_get_label(void *data, char *s,
|
||||
|
||||
setting = menu_setting_find(list->list[idx].label);
|
||||
|
||||
if (setting)
|
||||
setting_get_string_representation(setting, s, len);
|
||||
if (setting && setting->get_string_representation)
|
||||
setting->get_string_representation(setting, s, len);
|
||||
}
|
||||
|
||||
void general_read_handler(void *data)
|
||||
|
Loading…
Reference in New Issue
Block a user