mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 17:04:34 +00:00
Turn setting_get_type into a macro
This commit is contained in:
parent
d58a3a868c
commit
92465e3acd
@ -111,7 +111,7 @@ static void setting_get_string_representation_cheevos_password(void *data,
|
||||
if (!setting)
|
||||
return;
|
||||
|
||||
if (*setting->value.target.string)
|
||||
if (!string_is_empty(setting->value.target.string))
|
||||
snprintf(s, len, "%s",
|
||||
"********");
|
||||
else
|
||||
|
@ -103,13 +103,6 @@ bool settings_list_append(rarch_setting_t **list,
|
||||
return true;
|
||||
}
|
||||
|
||||
enum setting_type setting_get_type(rarch_setting_t *setting)
|
||||
{
|
||||
if (!setting)
|
||||
return ST_NONE;
|
||||
return setting->type;
|
||||
}
|
||||
|
||||
unsigned setting_get_bind_type(rarch_setting_t *setting)
|
||||
{
|
||||
if (!setting)
|
||||
|
@ -414,7 +414,7 @@ void settings_data_list_current_add_free_flags(
|
||||
rarch_setting_info_t *list_info,
|
||||
unsigned values);
|
||||
|
||||
enum setting_type setting_get_type(rarch_setting_t *setting);
|
||||
#define setting_get_type(setting) ((setting) ? setting->type : ST_NONE)
|
||||
|
||||
rarch_setting_t setting_terminator_setting(void);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user