mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
Remove setting_list.c and reintegrate it into menu_setting.c
This commit is contained in:
parent
ce5b1b2c0a
commit
01284c0231
@ -193,7 +193,6 @@ OBJ += frontend/frontend.o \
|
||||
$(LIBRETRO_COMM_DIR)/lists/string_list.o \
|
||||
$(LIBRETRO_COMM_DIR)/string/stdstring.o \
|
||||
$(LIBRETRO_COMM_DIR)/memmap/memalign.o \
|
||||
setting_list.o \
|
||||
list_special.o \
|
||||
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_stdio.o \
|
||||
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_linux.o \
|
||||
|
@ -941,7 +941,6 @@ FILE
|
||||
#include "../libretro-common/lists/dir_list.c"
|
||||
#include "../libretro-common/lists/string_list.c"
|
||||
#include "../libretro-common/lists/file_list.c"
|
||||
#include "../setting_list.c"
|
||||
#include "../libretro-common/file/retro_dirent.c"
|
||||
#include "../libretro-common/streams/file_stream.c"
|
||||
#include "../libretro-common/streams/file_stream_transforms.c"
|
||||
|
2597
menu/menu_setting.c
2597
menu/menu_setting.c
File diff suppressed because it is too large
Load Diff
@ -145,31 +145,8 @@ void menu_settings_list_current_add_range(
|
||||
bool enforce_minrange_enable,
|
||||
bool enforce_maxrange_enable);
|
||||
|
||||
void settings_data_list_current_add_flags(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
unsigned values);
|
||||
|
||||
void settings_data_list_current_add_free_flags(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
unsigned values);
|
||||
|
||||
void menu_settings_list_current_add_enum_idx(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
enum msg_hash_enums enum_idx);
|
||||
|
||||
void menu_settings_list_current_add_enum_value_idx(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
enum msg_hash_enums enum_idx);
|
||||
|
||||
void menu_setting_free(rarch_setting_t *setting);
|
||||
|
||||
bool settings_list_append(rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info);
|
||||
|
||||
bool menu_setting_ctl(
|
||||
enum menu_setting_ctl_state state, void *data);
|
||||
|
||||
|
2395
setting_list.c
2395
setting_list.c
File diff suppressed because it is too large
Load Diff
210
setting_list.h
210
setting_list.h
@ -216,216 +216,6 @@ struct rarch_setting_info
|
||||
int size;
|
||||
};
|
||||
|
||||
bool START_GROUP(rarch_setting_t **list, rarch_setting_info_t *list_info,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
const char *name, const char *parent_group);
|
||||
|
||||
bool END_GROUP(rarch_setting_t **list, rarch_setting_info_t *list_info,
|
||||
const char *parent_group);
|
||||
|
||||
bool START_SUB_GROUP(rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info, const char *name,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group);
|
||||
|
||||
bool END_SUB_GROUP(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
const char *parent_group);
|
||||
|
||||
bool CONFIG_ACTION_ALT(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
const char *name, const char *SHORT,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group);
|
||||
|
||||
bool CONFIG_ACTION(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
enum msg_hash_enums name_enum_idx,
|
||||
enum msg_hash_enums SHORT_enum_idx,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group);
|
||||
|
||||
bool CONFIG_BOOL_ALT(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
bool *target,
|
||||
const char *name, const char *SHORT,
|
||||
bool default_value,
|
||||
enum msg_hash_enums off_enum_idx,
|
||||
enum msg_hash_enums on_enum_idx,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group,
|
||||
change_handler_t change_handler,
|
||||
change_handler_t read_handler,
|
||||
uint32_t flags);
|
||||
|
||||
bool CONFIG_BOOL(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
bool *target,
|
||||
enum msg_hash_enums name_enum_idx,
|
||||
enum msg_hash_enums SHORT_enum_idx,
|
||||
bool default_value,
|
||||
enum msg_hash_enums off_enum_idx,
|
||||
enum msg_hash_enums on_enum_idx,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group,
|
||||
change_handler_t change_handler,
|
||||
change_handler_t read_handler,
|
||||
uint32_t flags);
|
||||
|
||||
bool CONFIG_INT(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
int *target,
|
||||
enum msg_hash_enums name_enum_idx,
|
||||
enum msg_hash_enums SHORT_enum_idx,
|
||||
int default_value,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group,
|
||||
change_handler_t change_handler, change_handler_t read_handler);
|
||||
|
||||
bool CONFIG_UINT_ALT(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
unsigned int *target,
|
||||
const char *name, const char *SHORT,
|
||||
unsigned int default_value,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group,
|
||||
change_handler_t change_handler, change_handler_t read_handler);
|
||||
|
||||
bool CONFIG_UINT(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
unsigned int *target,
|
||||
enum msg_hash_enums name_enum_idx,
|
||||
enum msg_hash_enums SHORT_enum_idx,
|
||||
unsigned int default_value,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group,
|
||||
change_handler_t change_handler, change_handler_t read_handler);
|
||||
|
||||
bool CONFIG_SIZE(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
size_t *target,
|
||||
enum msg_hash_enums name_enum_idx,
|
||||
enum msg_hash_enums SHORT_enum_idx,
|
||||
size_t default_value,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group,
|
||||
change_handler_t change_handler, change_handler_t read_handler,
|
||||
get_string_representation_t string_representation_handler);
|
||||
|
||||
bool CONFIG_FLOAT(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
float *target,
|
||||
enum msg_hash_enums name_enum_idx,
|
||||
enum msg_hash_enums SHORT_enum_idx,
|
||||
float default_value, const char *rounding,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group,
|
||||
change_handler_t change_handler, change_handler_t read_handler);
|
||||
|
||||
bool CONFIG_PATH(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
char *target, size_t len,
|
||||
enum msg_hash_enums name_enum_idx,
|
||||
enum msg_hash_enums SHORT_enum_idx,
|
||||
const char *default_value,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group,
|
||||
change_handler_t change_handler, change_handler_t read_handler);
|
||||
|
||||
bool CONFIG_DIR(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
char *target, size_t len,
|
||||
enum msg_hash_enums name_enum_idx,
|
||||
enum msg_hash_enums SHORT_enum_idx,
|
||||
const char *default_value,
|
||||
enum msg_hash_enums empty_enum_idx,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group,
|
||||
change_handler_t change_handler, change_handler_t read_handler);
|
||||
|
||||
bool CONFIG_STRING(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
char *target, size_t len,
|
||||
enum msg_hash_enums name_enum_idx,
|
||||
enum msg_hash_enums SHORT_enum_idx,
|
||||
const char *default_value,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group,
|
||||
change_handler_t change_handler, change_handler_t read_handler);
|
||||
|
||||
bool CONFIG_STRING_OPTIONS(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
char *target, size_t len,
|
||||
enum msg_hash_enums name_enum_idx,
|
||||
enum msg_hash_enums SHORT_enum_idx,
|
||||
const char *default_value, const char *values,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group,
|
||||
change_handler_t change_handler, change_handler_t read_handler);
|
||||
|
||||
bool CONFIG_HEX(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
unsigned int *target,
|
||||
enum msg_hash_enums name_enum_idx,
|
||||
enum msg_hash_enums SHORT_enum_idx,
|
||||
unsigned int default_value,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group,
|
||||
change_handler_t change_handler, change_handler_t read_handler);
|
||||
|
||||
/* Please strdup() NAME and SHORT */
|
||||
bool CONFIG_BIND(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
struct retro_keybind *target,
|
||||
uint32_t player, uint32_t player_offset,
|
||||
const char *name, const char *SHORT,
|
||||
const struct retro_keybind *default_value,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group);
|
||||
|
||||
bool CONFIG_BIND_ALT(
|
||||
rarch_setting_t **list,
|
||||
rarch_setting_info_t *list_info,
|
||||
struct retro_keybind *target,
|
||||
uint32_t player, uint32_t player_offset,
|
||||
const char *name, const char *SHORT,
|
||||
const struct retro_keybind *default_value,
|
||||
rarch_setting_group_info_t *group_info,
|
||||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group);
|
||||
|
||||
/**
|
||||
* setting_set_with_string_representation:
|
||||
* @setting : pointer to setting
|
||||
|
Loading…
x
Reference in New Issue
Block a user