mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
Add Horizontal Animation configuration
This commit is contained in:
parent
24107229fc
commit
7d71746b21
@ -52,7 +52,7 @@
|
|||||||
/* All config related settings go here. */
|
/* All config related settings go here. */
|
||||||
|
|
||||||
struct config_bool_setting
|
struct config_bool_setting
|
||||||
{
|
{
|
||||||
const char *ident;
|
const char *ident;
|
||||||
bool *ptr;
|
bool *ptr;
|
||||||
bool def_enable;
|
bool def_enable;
|
||||||
@ -61,7 +61,7 @@ struct config_bool_setting
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct config_int_setting
|
struct config_int_setting
|
||||||
{
|
{
|
||||||
const char *ident;
|
const char *ident;
|
||||||
int *ptr;
|
int *ptr;
|
||||||
bool def_enable;
|
bool def_enable;
|
||||||
@ -70,7 +70,7 @@ struct config_int_setting
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct config_uint_setting
|
struct config_uint_setting
|
||||||
{
|
{
|
||||||
const char *ident;
|
const char *ident;
|
||||||
unsigned *ptr;
|
unsigned *ptr;
|
||||||
bool def_enable;
|
bool def_enable;
|
||||||
@ -79,7 +79,7 @@ struct config_uint_setting
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct config_float_setting
|
struct config_float_setting
|
||||||
{
|
{
|
||||||
const char *ident;
|
const char *ident;
|
||||||
float *ptr;
|
float *ptr;
|
||||||
bool def_enable;
|
bool def_enable;
|
||||||
@ -88,7 +88,7 @@ struct config_float_setting
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct config_array_setting
|
struct config_array_setting
|
||||||
{
|
{
|
||||||
const char *ident;
|
const char *ident;
|
||||||
char *ptr;
|
char *ptr;
|
||||||
bool def_enable;
|
bool def_enable;
|
||||||
@ -97,7 +97,7 @@ struct config_array_setting
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct config_path_setting
|
struct config_path_setting
|
||||||
{
|
{
|
||||||
const char *ident;
|
const char *ident;
|
||||||
char *ptr;
|
char *ptr;
|
||||||
bool def_enable;
|
bool def_enable;
|
||||||
@ -485,7 +485,7 @@ static enum menu_driver_enum MENU_DEFAULT_DRIVER = MENU_NULL;
|
|||||||
tmp[count].def = default_setting; \
|
tmp[count].def = default_setting; \
|
||||||
tmp[count].handle = handle_setting; \
|
tmp[count].handle = handle_setting; \
|
||||||
count++; \
|
count++; \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define SETTING_BOOL(key, configval, default_enable, default_setting, handle_setting) \
|
#define SETTING_BOOL(key, configval, default_enable, default_setting, handle_setting) \
|
||||||
GENERAL_SETTING(key, configval, default_enable, default_setting, struct config_bool_setting, handle_setting)
|
GENERAL_SETTING(key, configval, default_enable, default_setting, struct config_bool_setting, handle_setting)
|
||||||
@ -1014,7 +1014,7 @@ static struct config_path_setting *populate_settings_path(settings_t *settings,
|
|||||||
SETTING_PATH("cheat_database_path",
|
SETTING_PATH("cheat_database_path",
|
||||||
settings->paths.path_cheat_database, false, NULL, true);
|
settings->paths.path_cheat_database, false, NULL, true);
|
||||||
#ifdef HAVE_MENU
|
#ifdef HAVE_MENU
|
||||||
SETTING_PATH("menu_wallpaper",
|
SETTING_PATH("menu_wallpaper",
|
||||||
settings->paths.path_menu_wallpaper, false, NULL, true);
|
settings->paths.path_menu_wallpaper, false, NULL, true);
|
||||||
#endif
|
#endif
|
||||||
SETTING_PATH("content_history_path",
|
SETTING_PATH("content_history_path",
|
||||||
@ -1033,7 +1033,7 @@ static struct config_path_setting *populate_settings_path(settings_t *settings,
|
|||||||
settings->paths.path_font, false, NULL, true);
|
settings->paths.path_font, false, NULL, true);
|
||||||
SETTING_PATH("cursor_directory",
|
SETTING_PATH("cursor_directory",
|
||||||
settings->paths.directory_cursor, false, NULL, true);
|
settings->paths.directory_cursor, false, NULL, true);
|
||||||
SETTING_PATH("content_history_dir",
|
SETTING_PATH("content_history_dir",
|
||||||
settings->paths.directory_content_history, false, NULL, true);
|
settings->paths.directory_content_history, false, NULL, true);
|
||||||
SETTING_PATH("screenshot_directory",
|
SETTING_PATH("screenshot_directory",
|
||||||
settings->paths.directory_screenshot, true, NULL, true);
|
settings->paths.directory_screenshot, true, NULL, true);
|
||||||
@ -1063,7 +1063,7 @@ static struct config_path_setting *populate_settings_path(settings_t *settings,
|
|||||||
settings->paths.directory_autoconfig, false, NULL, true);
|
settings->paths.directory_autoconfig, false, NULL, true);
|
||||||
SETTING_PATH("audio_filter_dir",
|
SETTING_PATH("audio_filter_dir",
|
||||||
settings->paths.directory_audio_filter, true, NULL, true);
|
settings->paths.directory_audio_filter, true, NULL, true);
|
||||||
SETTING_PATH("savefile_directory",
|
SETTING_PATH("savefile_directory",
|
||||||
dir_get_ptr(RARCH_DIR_SAVEFILE), true, NULL, false);
|
dir_get_ptr(RARCH_DIR_SAVEFILE), true, NULL, false);
|
||||||
SETTING_PATH("savestate_directory",
|
SETTING_PATH("savestate_directory",
|
||||||
dir_get_ptr(RARCH_DIR_SAVESTATE), true, NULL, false);
|
dir_get_ptr(RARCH_DIR_SAVESTATE), true, NULL, false);
|
||||||
@ -1078,11 +1078,11 @@ static struct config_path_setting *populate_settings_path(settings_t *settings,
|
|||||||
settings->paths.directory_overlay, true, NULL, true);
|
settings->paths.directory_overlay, true, NULL, true);
|
||||||
#endif
|
#endif
|
||||||
#ifndef HAVE_DYNAMIC
|
#ifndef HAVE_DYNAMIC
|
||||||
SETTING_PATH("libretro_path",
|
SETTING_PATH("libretro_path",
|
||||||
path_get_ptr(RARCH_PATH_CORE), false, NULL, false);
|
path_get_ptr(RARCH_PATH_CORE), false, NULL, false);
|
||||||
#endif
|
#endif
|
||||||
SETTING_PATH(
|
SETTING_PATH(
|
||||||
"screenshot_directory",
|
"screenshot_directory",
|
||||||
settings->paths.directory_screenshot, true, NULL, false);
|
settings->paths.directory_screenshot, true, NULL, false);
|
||||||
|
|
||||||
if (global)
|
if (global)
|
||||||
@ -1180,6 +1180,7 @@ static struct config_bool_setting *populate_settings_bool(settings_t *settings,
|
|||||||
#endif
|
#endif
|
||||||
SETTING_BOOL("menu_throttle_framerate", &settings->bools.menu_throttle_framerate, true, true, false);
|
SETTING_BOOL("menu_throttle_framerate", &settings->bools.menu_throttle_framerate, true, true, false);
|
||||||
SETTING_BOOL("menu_linear_filter", &settings->bools.menu_linear_filter, true, true, false);
|
SETTING_BOOL("menu_linear_filter", &settings->bools.menu_linear_filter, true, true, false);
|
||||||
|
SETTING_BOOL("menu_horizontal_animation", &settings->bools.menu_horizontal_animation, true, true, false);
|
||||||
SETTING_BOOL("dpi_override_enable", &settings->bools.menu_dpi_override_enable, true, menu_dpi_override_enable, false);
|
SETTING_BOOL("dpi_override_enable", &settings->bools.menu_dpi_override_enable, true, menu_dpi_override_enable, false);
|
||||||
SETTING_BOOL("menu_pause_libretro", &settings->bools.menu_pause_libretro, true, true, false);
|
SETTING_BOOL("menu_pause_libretro", &settings->bools.menu_pause_libretro, true, true, false);
|
||||||
SETTING_BOOL("menu_mouse_enable", &settings->bools.menu_mouse_enable, true, def_mouse_enable, false);
|
SETTING_BOOL("menu_mouse_enable", &settings->bools.menu_mouse_enable, true, def_mouse_enable, false);
|
||||||
@ -1204,14 +1205,14 @@ static struct config_bool_setting *populate_settings_bool(settings_t *settings,
|
|||||||
SETTING_BOOL("xmb_show_netplay", &settings->bools.menu_xmb_show_netplay, true, xmb_show_netplay, false);
|
SETTING_BOOL("xmb_show_netplay", &settings->bools.menu_xmb_show_netplay, true, xmb_show_netplay, false);
|
||||||
#endif
|
#endif
|
||||||
SETTING_BOOL("xmb_show_history", &settings->bools.menu_xmb_show_history, true, xmb_show_history, false);
|
SETTING_BOOL("xmb_show_history", &settings->bools.menu_xmb_show_history, true, xmb_show_history, false);
|
||||||
#ifdef HAVE_LIBRETRODB
|
#ifdef HAVE_LIBRETRODB
|
||||||
SETTING_BOOL("xmb_show_add", &settings->bools.menu_xmb_show_add, true, xmb_show_add, false);
|
SETTING_BOOL("xmb_show_add", &settings->bools.menu_xmb_show_add, true, xmb_show_add, false);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
SETTING_BOOL("filter_by_current_core", &settings->bools.filter_by_current_core, false, false /* TODO */, false);
|
SETTING_BOOL("filter_by_current_core", &settings->bools.filter_by_current_core, false, false /* TODO */, false);
|
||||||
SETTING_BOOL("rgui_show_start_screen", &settings->bools.menu_show_start_screen, false, false /* TODO */, false);
|
SETTING_BOOL("rgui_show_start_screen", &settings->bools.menu_show_start_screen, false, false /* TODO */, false);
|
||||||
SETTING_BOOL("menu_navigation_wraparound_enable", &settings->bools.menu_navigation_wraparound_enable, true, true, false);
|
SETTING_BOOL("menu_navigation_wraparound_enable", &settings->bools.menu_navigation_wraparound_enable, true, true, false);
|
||||||
SETTING_BOOL("menu_navigation_browser_filter_supported_extensions_enable",
|
SETTING_BOOL("menu_navigation_browser_filter_supported_extensions_enable",
|
||||||
&settings->bools.menu_navigation_browser_filter_supported_extensions_enable, true, true, false);
|
&settings->bools.menu_navigation_browser_filter_supported_extensions_enable, true, true, false);
|
||||||
SETTING_BOOL("menu_show_advanced_settings", &settings->bools.menu_show_advanced_settings, true, show_advanced_settings, false);
|
SETTING_BOOL("menu_show_advanced_settings", &settings->bools.menu_show_advanced_settings, true, show_advanced_settings, false);
|
||||||
#endif
|
#endif
|
||||||
@ -1923,7 +1924,7 @@ static config_file_t *open_default_config_file(void)
|
|||||||
RARCH_WARN("Created new config file in: \"%s\".\n", conf_path);
|
RARCH_WARN("Created new config file in: \"%s\".\n", conf_path);
|
||||||
}
|
}
|
||||||
#elif !defined(RARCH_CONSOLE)
|
#elif !defined(RARCH_CONSOLE)
|
||||||
bool has_application_data =
|
bool has_application_data =
|
||||||
fill_pathname_application_data(application_data,
|
fill_pathname_application_data(application_data,
|
||||||
sizeof(application_data));
|
sizeof(application_data));
|
||||||
|
|
||||||
@ -2099,7 +2100,7 @@ static bool check_shader_compatibility(enum file_path_enum enum_idx)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (string_is_equal_fast(settings->arrays.video_driver, "gl", 2) ||
|
if (string_is_equal_fast(settings->arrays.video_driver, "gl", 2) ||
|
||||||
string_is_equal_fast(settings->arrays.video_driver, "d3d", 3)
|
string_is_equal_fast(settings->arrays.video_driver, "d3d", 3)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@ -2170,7 +2171,7 @@ static void config_get_hex_base(config_file_t *conf,
|
|||||||
* Loads a config file and reads all the values into memory.
|
* Loads a config file and reads all the values into memory.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
static bool config_load_file(const char *path, bool set_defaults,
|
static bool config_load_file(const char *path, bool set_defaults,
|
||||||
settings_t *settings)
|
settings_t *settings)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
@ -2706,10 +2707,10 @@ end:
|
|||||||
* This function only has an effect if a game-specific or core-specific
|
* This function only has an effect if a game-specific or core-specific
|
||||||
* configuration file exists at respective locations.
|
* configuration file exists at respective locations.
|
||||||
*
|
*
|
||||||
* core-specific: $CONFIG_DIR/$CORE_NAME/$CORE_NAME.cfg
|
* core-specific: $CONFIG_DIR/$CORE_NAME/$CORE_NAME.cfg
|
||||||
* fallback: $CURRENT_CFG_LOCATION/$CORE_NAME/$CORE_NAME.cfg
|
* fallback: $CURRENT_CFG_LOCATION/$CORE_NAME/$CORE_NAME.cfg
|
||||||
*
|
*
|
||||||
* game-specific: $CONFIG_DIR/$CORE_NAME/$ROM_NAME.cfg
|
* game-specific: $CONFIG_DIR/$CORE_NAME/$ROM_NAME.cfg
|
||||||
* fallback: $CURRENT_CFG_LOCATION/$CORE_NAME/$GAME_NAME.cfg
|
* fallback: $CURRENT_CFG_LOCATION/$CORE_NAME/$GAME_NAME.cfg
|
||||||
*
|
*
|
||||||
* Returns: false if there was an error or no action was performed.
|
* Returns: false if there was an error or no action was performed.
|
||||||
@ -2805,7 +2806,7 @@ bool config_load_override(void)
|
|||||||
/* Re-load the configuration with any overrides that might have been found */
|
/* Re-load the configuration with any overrides that might have been found */
|
||||||
buf[0] = '\0';
|
buf[0] = '\0';
|
||||||
|
|
||||||
/* Store the libretro_path we're using since it will be
|
/* Store the libretro_path we're using since it will be
|
||||||
* overwritten by the override when reloading. */
|
* overwritten by the override when reloading. */
|
||||||
strlcpy(buf, path_get(RARCH_PATH_CORE), sizeof(buf));
|
strlcpy(buf, path_get(RARCH_PATH_CORE), sizeof(buf));
|
||||||
|
|
||||||
@ -3252,7 +3253,7 @@ static void save_keybinds_user(config_file_t *conf, unsigned user)
|
|||||||
*/
|
*/
|
||||||
void config_load(void)
|
void config_load(void)
|
||||||
{
|
{
|
||||||
/* Flush out some states that could have been
|
/* Flush out some states that could have been
|
||||||
* set by core environment variables */
|
* set by core environment variables */
|
||||||
core_unset_input_descriptors();
|
core_unset_input_descriptors();
|
||||||
|
|
||||||
@ -3442,7 +3443,7 @@ bool config_save_file(const char *path)
|
|||||||
|
|
||||||
#ifdef HAVE_MENU
|
#ifdef HAVE_MENU
|
||||||
config_set_path(conf, "xmb_font",
|
config_set_path(conf, "xmb_font",
|
||||||
!string_is_empty(settings->paths.path_menu_xmb_font)
|
!string_is_empty(settings->paths.path_menu_xmb_font)
|
||||||
? settings->paths.path_menu_xmb_font : "");
|
? settings->paths.path_menu_xmb_font : "");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -3633,7 +3634,7 @@ bool config_save_overrides(int override_type)
|
|||||||
fill_pathname_application_special(config_directory, sizeof(config_directory),
|
fill_pathname_application_special(config_directory, sizeof(config_directory),
|
||||||
APPLICATION_SPECIAL_DIRECTORY_CONFIG);
|
APPLICATION_SPECIAL_DIRECTORY_CONFIG);
|
||||||
|
|
||||||
fill_pathname_join(override_directory, config_directory, core_name,
|
fill_pathname_join(override_directory, config_directory, core_name,
|
||||||
sizeof(override_directory));
|
sizeof(override_directory));
|
||||||
|
|
||||||
if(!path_file_exists(override_directory))
|
if(!path_file_exists(override_directory))
|
||||||
@ -3690,9 +3691,9 @@ bool config_save_overrides(int override_type)
|
|||||||
{
|
{
|
||||||
if ((*bool_settings[i].ptr) != (*bool_overrides[i].ptr))
|
if ((*bool_settings[i].ptr) != (*bool_overrides[i].ptr))
|
||||||
{
|
{
|
||||||
RARCH_LOG(" original: %s=%d\n",
|
RARCH_LOG(" original: %s=%d\n",
|
||||||
bool_settings[i].ident, (*bool_settings[i].ptr));
|
bool_settings[i].ident, (*bool_settings[i].ptr));
|
||||||
RARCH_LOG(" override: %s=%d\n",
|
RARCH_LOG(" override: %s=%d\n",
|
||||||
bool_overrides[i].ident, (*bool_overrides[i].ptr));
|
bool_overrides[i].ident, (*bool_overrides[i].ptr));
|
||||||
config_set_bool(conf, bool_overrides[i].ident,
|
config_set_bool(conf, bool_overrides[i].ident,
|
||||||
(*bool_overrides[i].ptr));
|
(*bool_overrides[i].ptr));
|
||||||
@ -3702,9 +3703,9 @@ bool config_save_overrides(int override_type)
|
|||||||
{
|
{
|
||||||
if ((*int_settings[i].ptr) != (*int_overrides[i].ptr))
|
if ((*int_settings[i].ptr) != (*int_overrides[i].ptr))
|
||||||
{
|
{
|
||||||
RARCH_LOG(" original: %s=%d\n",
|
RARCH_LOG(" original: %s=%d\n",
|
||||||
int_settings[i].ident, (*int_settings[i].ptr));
|
int_settings[i].ident, (*int_settings[i].ptr));
|
||||||
RARCH_LOG(" override: %s=%d\n",
|
RARCH_LOG(" override: %s=%d\n",
|
||||||
int_overrides[i].ident, (*int_overrides[i].ptr));
|
int_overrides[i].ident, (*int_overrides[i].ptr));
|
||||||
config_set_int(conf, int_overrides[i].ident,
|
config_set_int(conf, int_overrides[i].ident,
|
||||||
(*int_overrides[i].ptr));
|
(*int_overrides[i].ptr));
|
||||||
@ -3714,9 +3715,9 @@ bool config_save_overrides(int override_type)
|
|||||||
{
|
{
|
||||||
if ((*uint_settings[i].ptr) != (*uint_overrides[i].ptr))
|
if ((*uint_settings[i].ptr) != (*uint_overrides[i].ptr))
|
||||||
{
|
{
|
||||||
RARCH_LOG(" original: %s=%d\n",
|
RARCH_LOG(" original: %s=%d\n",
|
||||||
uint_settings[i].ident, (*uint_settings[i].ptr));
|
uint_settings[i].ident, (*uint_settings[i].ptr));
|
||||||
RARCH_LOG(" override: %s=%d\n",
|
RARCH_LOG(" override: %s=%d\n",
|
||||||
uint_overrides[i].ident, (*uint_overrides[i].ptr));
|
uint_overrides[i].ident, (*uint_overrides[i].ptr));
|
||||||
config_set_int(conf, uint_overrides[i].ident,
|
config_set_int(conf, uint_overrides[i].ident,
|
||||||
(*uint_overrides[i].ptr));
|
(*uint_overrides[i].ptr));
|
||||||
@ -3726,9 +3727,9 @@ bool config_save_overrides(int override_type)
|
|||||||
{
|
{
|
||||||
if ((*float_settings[i].ptr) != (*float_overrides[i].ptr))
|
if ((*float_settings[i].ptr) != (*float_overrides[i].ptr))
|
||||||
{
|
{
|
||||||
RARCH_LOG(" original: %s=%f\n",
|
RARCH_LOG(" original: %s=%f\n",
|
||||||
float_settings[i].ident, *float_settings[i].ptr);
|
float_settings[i].ident, *float_settings[i].ptr);
|
||||||
RARCH_LOG(" override: %s=%f\n",
|
RARCH_LOG(" override: %s=%f\n",
|
||||||
float_overrides[i].ident, *float_overrides[i].ptr);
|
float_overrides[i].ident, *float_overrides[i].ptr);
|
||||||
config_set_float(conf, float_overrides[i].ident,
|
config_set_float(conf, float_overrides[i].ident,
|
||||||
*float_overrides[i].ptr);
|
*float_overrides[i].ptr);
|
||||||
@ -3739,9 +3740,9 @@ bool config_save_overrides(int override_type)
|
|||||||
{
|
{
|
||||||
if (!string_is_equal(array_settings[i].ptr, array_overrides[i].ptr))
|
if (!string_is_equal(array_settings[i].ptr, array_overrides[i].ptr))
|
||||||
{
|
{
|
||||||
RARCH_LOG(" original: %s=%s\n",
|
RARCH_LOG(" original: %s=%s\n",
|
||||||
array_settings[i].ident, array_settings[i].ptr);
|
array_settings[i].ident, array_settings[i].ptr);
|
||||||
RARCH_LOG(" override: %s=%s\n",
|
RARCH_LOG(" override: %s=%s\n",
|
||||||
array_overrides[i].ident, array_overrides[i].ptr);
|
array_overrides[i].ident, array_overrides[i].ptr);
|
||||||
config_set_string(conf, array_overrides[i].ident,
|
config_set_string(conf, array_overrides[i].ident,
|
||||||
array_overrides[i].ptr);
|
array_overrides[i].ptr);
|
||||||
@ -3752,9 +3753,9 @@ bool config_save_overrides(int override_type)
|
|||||||
{
|
{
|
||||||
if (!string_is_equal(path_settings[i].ptr, path_overrides[i].ptr))
|
if (!string_is_equal(path_settings[i].ptr, path_overrides[i].ptr))
|
||||||
{
|
{
|
||||||
RARCH_LOG(" original: %s=%s\n",
|
RARCH_LOG(" original: %s=%s\n",
|
||||||
path_settings[i].ident, path_settings[i].ptr);
|
path_settings[i].ident, path_settings[i].ptr);
|
||||||
RARCH_LOG(" override: %s=%s\n",
|
RARCH_LOG(" override: %s=%s\n",
|
||||||
path_overrides[i].ident, path_overrides[i].ptr);
|
path_overrides[i].ident, path_overrides[i].ptr);
|
||||||
config_set_path(conf, path_overrides[i].ident,
|
config_set_path(conf, path_overrides[i].ident,
|
||||||
path_overrides[i].ptr);
|
path_overrides[i].ptr);
|
||||||
|
@ -119,6 +119,7 @@ typedef struct settings
|
|||||||
bool menu_show_advanced_settings;
|
bool menu_show_advanced_settings;
|
||||||
bool menu_throttle_framerate;
|
bool menu_throttle_framerate;
|
||||||
bool menu_linear_filter;
|
bool menu_linear_filter;
|
||||||
|
bool menu_horizontal_animation;
|
||||||
bool menu_show_online_updater;
|
bool menu_show_online_updater;
|
||||||
bool menu_show_core_updater;
|
bool menu_show_core_updater;
|
||||||
bool menu_xmb_shadows_enable;
|
bool menu_xmb_shadows_enable;
|
||||||
|
@ -860,6 +860,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_FILE_BROWSER_SETTINGS,
|
|||||||
"Menu File Browser")
|
"Menu File Browser")
|
||||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_LINEAR_FILTER,
|
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_LINEAR_FILTER,
|
||||||
"Menu Linear Filter")
|
"Menu Linear Filter")
|
||||||
|
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_HORIZONTAL_ANIMATION,
|
||||||
|
"Horizontal Animation")
|
||||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SETTINGS,
|
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SETTINGS,
|
||||||
"Menu")
|
"Menu")
|
||||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WALLPAPER,
|
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WALLPAPER,
|
||||||
|
@ -579,6 +579,8 @@ MSG_HASH(MENU_ENUM_LABEL_MENU_FILE_BROWSER_SETTINGS,
|
|||||||
"menu_file_browser_settings")
|
"menu_file_browser_settings")
|
||||||
MSG_HASH(MENU_ENUM_LABEL_MENU_LINEAR_FILTER,
|
MSG_HASH(MENU_ENUM_LABEL_MENU_LINEAR_FILTER,
|
||||||
"menu_linear_filter")
|
"menu_linear_filter")
|
||||||
|
MSG_HASH(MENU_ENUM_LABEL_MENU_HORIZONTAL_ANIMATION,
|
||||||
|
"menu_horizontal_animation")
|
||||||
MSG_HASH(MENU_ENUM_LABEL_MENU_SETTINGS,
|
MSG_HASH(MENU_ENUM_LABEL_MENU_SETTINGS,
|
||||||
"menu_settings")
|
"menu_settings")
|
||||||
MSG_HASH(MENU_ENUM_LABEL_MENU_WALLPAPER,
|
MSG_HASH(MENU_ENUM_LABEL_MENU_WALLPAPER,
|
||||||
|
@ -953,6 +953,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_FILE_BROWSER_SETTINGS,
|
|||||||
"Settings")
|
"Settings")
|
||||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_LINEAR_FILTER,
|
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_LINEAR_FILTER,
|
||||||
"Menu Linear Filter")
|
"Menu Linear Filter")
|
||||||
|
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_HORIZONTAL_ANIMATION,
|
||||||
|
"Horizontal Animation")
|
||||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SETTINGS,
|
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SETTINGS,
|
||||||
"Menu")
|
"Menu")
|
||||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WALLPAPER,
|
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WALLPAPER,
|
||||||
|
@ -1612,6 +1612,7 @@ static void xmb_list_switch(xmb_handle_t *xmb)
|
|||||||
int dir = -1;
|
int dir = -1;
|
||||||
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
|
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
|
||||||
size_t selection = menu_navigation_get_selection();
|
size_t selection = menu_navigation_get_selection();
|
||||||
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
if (xmb->categories.selection_ptr > xmb->categories.selection_ptr_old)
|
if (xmb->categories.selection_ptr > xmb->categories.selection_ptr_old)
|
||||||
dir = 1;
|
dir = 1;
|
||||||
@ -1636,8 +1637,11 @@ static void xmb_list_switch(xmb_handle_t *xmb)
|
|||||||
|
|
||||||
xmb_list_switch_old(xmb, xmb->selection_buf_old,
|
xmb_list_switch_old(xmb, xmb->selection_buf_old,
|
||||||
dir, xmb->selection_ptr_old);
|
dir, xmb->selection_ptr_old);
|
||||||
// TODO: Add toggle for settings.
|
|
||||||
//xmb_list_switch_new(xmb, selection_buf, dir, selection);
|
// Check if we are to have horizontal animations.
|
||||||
|
if (settings->bools.menu_horizontal_animation) {
|
||||||
|
xmb_list_switch_new(xmb, selection_buf, dir, selection);
|
||||||
|
}
|
||||||
xmb->categories.active.idx_old = (unsigned)xmb->categories.selection_ptr;
|
xmb->categories.active.idx_old = (unsigned)xmb->categories.selection_ptr;
|
||||||
|
|
||||||
if (!string_is_equal(xmb_thumbnails_ident(),
|
if (!string_is_equal(xmb_thumbnails_ident(),
|
||||||
@ -3808,13 +3812,17 @@ static void xmb_list_cache(void *data, enum menu_list_type type, unsigned action
|
|||||||
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0);
|
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0);
|
||||||
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
|
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
|
||||||
size_t selection = menu_navigation_get_selection();
|
size_t selection = menu_navigation_get_selection();
|
||||||
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
if (!xmb)
|
if (!xmb)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// TODO: Add toggle for settings.
|
// Check whether to enable the horizontal animation.
|
||||||
//xmb_list_deep_copy(selection_buf, xmb->selection_buf_old);
|
if (settings->bools.menu_horizontal_animation) {
|
||||||
//xmb_list_deep_copy(menu_stack, xmb->menu_stack_old);
|
xmb_list_deep_copy(selection_buf, xmb->selection_buf_old);
|
||||||
|
xmb_list_deep_copy(menu_stack, xmb->menu_stack_old);
|
||||||
|
}
|
||||||
|
|
||||||
xmb->selection_ptr_old = selection;
|
xmb->selection_ptr_old = selection;
|
||||||
|
|
||||||
list_size = xmb_list_get_size(xmb, MENU_LIST_HORIZONTAL)
|
list_size = xmb_list_get_size(xmb, MENU_LIST_HORIZONTAL)
|
||||||
|
@ -297,7 +297,7 @@ static void print_buf_lines(file_list_t *list, char *buf,
|
|||||||
sizeof(core_path));
|
sizeof(core_path));
|
||||||
|
|
||||||
if (
|
if (
|
||||||
path_file_exists(core_path)
|
path_file_exists(core_path)
|
||||||
&& core_info_get_display_name(
|
&& core_info_get_display_name(
|
||||||
core_path, display_name, sizeof(display_name)))
|
core_path, display_name, sizeof(display_name)))
|
||||||
menu_entries_set_alt_at_offset(list, j, display_name);
|
menu_entries_set_alt_at_offset(list, j, display_name);
|
||||||
@ -1843,7 +1843,7 @@ static int menu_displaylist_parse_database_entry(menu_displaylist_info_t *info)
|
|||||||
strlcpy(thumbnail_content, db_info_entry->name, sizeof(thumbnail_content));
|
strlcpy(thumbnail_content, db_info_entry->name, sizeof(thumbnail_content));
|
||||||
|
|
||||||
if (!string_is_empty(thumbnail_content))
|
if (!string_is_empty(thumbnail_content))
|
||||||
menu_driver_set_thumbnail_content(thumbnail_content, sizeof(thumbnail_content));
|
menu_driver_set_thumbnail_content(thumbnail_content, sizeof(thumbnail_content));
|
||||||
|
|
||||||
menu_driver_ctl(RARCH_MENU_CTL_UPDATE_THUMBNAIL_PATH, NULL);
|
menu_driver_ctl(RARCH_MENU_CTL_UPDATE_THUMBNAIL_PATH, NULL);
|
||||||
menu_driver_ctl(RARCH_MENU_CTL_UPDATE_THUMBNAIL_IMAGE, NULL);
|
menu_driver_ctl(RARCH_MENU_CTL_UPDATE_THUMBNAIL_IMAGE, NULL);
|
||||||
@ -2945,7 +2945,7 @@ static int menu_displaylist_parse_horizontal_content_actions(
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
const char *ext = NULL;
|
const char *ext = NULL;
|
||||||
|
|
||||||
if (!string_is_empty(entry_path))
|
if (!string_is_empty(entry_path))
|
||||||
ext = path_get_extension(entry_path);
|
ext = path_get_extension(entry_path);
|
||||||
|
|
||||||
@ -2963,8 +2963,8 @@ static int menu_displaylist_parse_horizontal_content_actions(
|
|||||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RUN),
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RUN),
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_RUN),
|
msg_hash_to_str(MENU_ENUM_LABEL_RUN),
|
||||||
MENU_ENUM_LABEL_RUN, FILE_TYPE_PLAYLIST_ENTRY, 0, idx);
|
MENU_ENUM_LABEL_RUN, FILE_TYPE_PLAYLIST_ENTRY, 0, idx);
|
||||||
|
|
||||||
if (settings->bools.playlist_entry_remove)
|
if (settings->bools.playlist_entry_remove)
|
||||||
menu_entries_append_enum(info->list,
|
menu_entries_append_enum(info->list,
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DELETE_ENTRY),
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DELETE_ENTRY),
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_DELETE_ENTRY),
|
msg_hash_to_str(MENU_ENUM_LABEL_DELETE_ENTRY),
|
||||||
@ -4033,7 +4033,7 @@ bool menu_displaylist_process(menu_displaylist_info_t *info)
|
|||||||
MENU_SETTING_ACTION, 0, 0);
|
MENU_SETTING_ACTION, 0, 0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (info->push_builtin_cores)
|
if (info->push_builtin_cores)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_VIDEO_PROCESSOR)
|
#if defined(HAVE_VIDEO_PROCESSOR)
|
||||||
@ -4747,7 +4747,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
|
|||||||
PARSE_ONLY_UINT, false);
|
PARSE_ONLY_UINT, false);
|
||||||
ret = menu_displaylist_parse_settings_enum(menu, info,
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
||||||
MENU_ENUM_LABEL_PLAYLIST_ENTRY_REMOVE,
|
MENU_ENUM_LABEL_PLAYLIST_ENTRY_REMOVE,
|
||||||
PARSE_ONLY_BOOL, false);
|
PARSE_ONLY_BOOL, false);
|
||||||
|
|
||||||
menu_displaylist_parse_playlist_associations(info);
|
menu_displaylist_parse_playlist_associations(info);
|
||||||
info->need_push = true;
|
info->need_push = true;
|
||||||
@ -5048,6 +5048,9 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
|
|||||||
menu_displaylist_parse_settings_enum(menu, info,
|
menu_displaylist_parse_settings_enum(menu, info,
|
||||||
MENU_ENUM_LABEL_MENU_LINEAR_FILTER,
|
MENU_ENUM_LABEL_MENU_LINEAR_FILTER,
|
||||||
PARSE_ONLY_BOOL, false);
|
PARSE_ONLY_BOOL, false);
|
||||||
|
menu_displaylist_parse_settings_enum(menu, info,
|
||||||
|
MENU_ENUM_LABEL_MENU_HORIZONTAL_ANIMATION,
|
||||||
|
PARSE_ONLY_BOOL, false);
|
||||||
menu_displaylist_parse_settings_enum(menu, info,
|
menu_displaylist_parse_settings_enum(menu, info,
|
||||||
MENU_ENUM_LABEL_NAVIGATION_WRAPAROUND,
|
MENU_ENUM_LABEL_NAVIGATION_WRAPAROUND,
|
||||||
PARSE_ONLY_BOOL, false);
|
PARSE_ONLY_BOOL, false);
|
||||||
|
@ -140,10 +140,10 @@ static void setting_get_string_representation_uint_custom_viewport_width(void *d
|
|||||||
rarch_setting_t *setting = (rarch_setting_t*)data;
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
||||||
if (!setting)
|
if (!setting)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
av_info = video_viewport_get_system_av_info();
|
av_info = video_viewport_get_system_av_info();
|
||||||
geom = (struct retro_game_geometry*)&av_info->geometry;
|
geom = (struct retro_game_geometry*)&av_info->geometry;
|
||||||
|
|
||||||
if (*setting->value.target.unsigned_integer%geom->base_width == 0)
|
if (*setting->value.target.unsigned_integer%geom->base_width == 0)
|
||||||
snprintf(s, len, "%u (%ux)",
|
snprintf(s, len, "%u (%ux)",
|
||||||
*setting->value.target.unsigned_integer,
|
*setting->value.target.unsigned_integer,
|
||||||
@ -161,10 +161,10 @@ static void setting_get_string_representation_uint_custom_viewport_height(void *
|
|||||||
rarch_setting_t *setting = (rarch_setting_t*)data;
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
||||||
if (!setting)
|
if (!setting)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
av_info = video_viewport_get_system_av_info();
|
av_info = video_viewport_get_system_av_info();
|
||||||
geom = (struct retro_game_geometry*)&av_info->geometry;
|
geom = (struct retro_game_geometry*)&av_info->geometry;
|
||||||
|
|
||||||
if (*setting->value.target.unsigned_integer%geom->base_height == 0)
|
if (*setting->value.target.unsigned_integer%geom->base_height == 0)
|
||||||
snprintf(s, len, "%u (%ux)",
|
snprintf(s, len, "%u (%ux)",
|
||||||
*setting->value.target.unsigned_integer,
|
*setting->value.target.unsigned_integer,
|
||||||
@ -764,7 +764,7 @@ int menu_action_handle_setting(rarch_setting_t *setting,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static rarch_setting_t *menu_setting_find_internal(rarch_setting_t *setting,
|
static rarch_setting_t *menu_setting_find_internal(rarch_setting_t *setting,
|
||||||
const char *label)
|
const char *label)
|
||||||
{
|
{
|
||||||
uint32_t needle = msg_hash_calculate(label);
|
uint32_t needle = msg_hash_calculate(label);
|
||||||
@ -794,7 +794,7 @@ static rarch_setting_t *menu_setting_find_internal(rarch_setting_t *setting,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static rarch_setting_t *menu_setting_find_internal_enum(rarch_setting_t *setting,
|
static rarch_setting_t *menu_setting_find_internal_enum(rarch_setting_t *setting,
|
||||||
enum msg_hash_enums enum_idx)
|
enum msg_hash_enums enum_idx)
|
||||||
{
|
{
|
||||||
rarch_setting_t **list = &setting;
|
rarch_setting_t **list = &setting;
|
||||||
@ -1051,7 +1051,7 @@ static int setting_action_start_libretro_device_type(void *data)
|
|||||||
|
|
||||||
if (system)
|
if (system)
|
||||||
{
|
{
|
||||||
/* Only push RETRO_DEVICE_ANALOG as default if we use an
|
/* Only push RETRO_DEVICE_ANALOG as default if we use an
|
||||||
* older core which doesn't use SET_CONTROLLER_INFO. */
|
* older core which doesn't use SET_CONTROLLER_INFO. */
|
||||||
if (!system->ports.size)
|
if (!system->ports.size)
|
||||||
devices[types++] = RETRO_DEVICE_ANALOG;
|
devices[types++] = RETRO_DEVICE_ANALOG;
|
||||||
@ -1155,7 +1155,7 @@ static int setting_action_left_libretro_device_type(
|
|||||||
|
|
||||||
if (system)
|
if (system)
|
||||||
{
|
{
|
||||||
/* Only push RETRO_DEVICE_ANALOG as default if we use an
|
/* Only push RETRO_DEVICE_ANALOG as default if we use an
|
||||||
* older core which doesn't use SET_CONTROLLER_INFO. */
|
* older core which doesn't use SET_CONTROLLER_INFO. */
|
||||||
if (!system->ports.size)
|
if (!system->ports.size)
|
||||||
devices[types++] = RETRO_DEVICE_ANALOG;
|
devices[types++] = RETRO_DEVICE_ANALOG;
|
||||||
@ -1220,7 +1220,7 @@ static int setting_action_right_libretro_device_type(
|
|||||||
|
|
||||||
if (system)
|
if (system)
|
||||||
{
|
{
|
||||||
/* Only push RETRO_DEVICE_ANALOG as default if we use an
|
/* Only push RETRO_DEVICE_ANALOG as default if we use an
|
||||||
* older core which doesn't use SET_CONTROLLER_INFO. */
|
* older core which doesn't use SET_CONTROLLER_INFO. */
|
||||||
if (!system->ports.size)
|
if (!system->ports.size)
|
||||||
devices[types++] = RETRO_DEVICE_ANALOG;
|
devices[types++] = RETRO_DEVICE_ANALOG;
|
||||||
@ -1391,7 +1391,7 @@ static int setting_action_ok_bind_defaults(void *data, bool wraparound)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
target = &input_config_binds[setting->index_offset][0];
|
target = &input_config_binds[setting->index_offset][0];
|
||||||
def_binds = (setting->index_offset) ?
|
def_binds = (setting->index_offset) ?
|
||||||
retro_keybinds_rest : retro_keybinds_1;
|
retro_keybinds_rest : retro_keybinds_1;
|
||||||
|
|
||||||
lim.min = MENU_SETTINGS_BIND_BEGIN;
|
lim.min = MENU_SETTINGS_BIND_BEGIN;
|
||||||
@ -1506,7 +1506,7 @@ static void get_string_representation_bind_device(void * data, char *s,
|
|||||||
* Get associated label of a setting.
|
* Get associated label of a setting.
|
||||||
**/
|
**/
|
||||||
void menu_setting_get_label(void *data, char *s,
|
void menu_setting_get_label(void *data, char *s,
|
||||||
size_t len, unsigned *w, unsigned type,
|
size_t len, unsigned *w, unsigned type,
|
||||||
const char *menu_label, const char *label, unsigned idx)
|
const char *menu_label, const char *label, unsigned idx)
|
||||||
{
|
{
|
||||||
rarch_setting_t *setting = NULL;
|
rarch_setting_t *setting = NULL;
|
||||||
@ -1636,7 +1636,7 @@ void general_write_handler(void *data)
|
|||||||
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0);
|
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0);
|
||||||
|
|
||||||
info.list = menu_stack;
|
info.list = menu_stack;
|
||||||
info.type = 0;
|
info.type = 0;
|
||||||
info.directory_ptr = 0;
|
info.directory_ptr = 0;
|
||||||
strlcpy(info.label,
|
strlcpy(info.label,
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_HELP), sizeof(info.label));
|
msg_hash_to_str(MENU_ENUM_LABEL_HELP), sizeof(info.label));
|
||||||
@ -1697,14 +1697,14 @@ void general_write_handler(void *data)
|
|||||||
settings->uints.input_joypad_map[4] = *setting->value.target.integer;
|
settings->uints.input_joypad_map[4] = *setting->value.target.integer;
|
||||||
break;
|
break;
|
||||||
case MENU_ENUM_LABEL_LOG_VERBOSITY:
|
case MENU_ENUM_LABEL_LOG_VERBOSITY:
|
||||||
if (setting
|
if (setting
|
||||||
&& setting->value.target.boolean
|
&& setting->value.target.boolean
|
||||||
&& *setting->value.target.boolean)
|
&& *setting->value.target.boolean)
|
||||||
verbosity_enable();
|
verbosity_enable();
|
||||||
else
|
else
|
||||||
verbosity_disable();
|
verbosity_disable();
|
||||||
|
|
||||||
if (setting
|
if (setting
|
||||||
&& setting->value.target.boolean
|
&& setting->value.target.boolean
|
||||||
&& *setting->value.target.boolean)
|
&& *setting->value.target.boolean)
|
||||||
retroarch_override_setting_set(RARCH_OVERRIDE_SETTING_VERBOSITY, NULL);
|
retroarch_override_setting_set(RARCH_OVERRIDE_SETTING_VERBOSITY, NULL);
|
||||||
@ -1752,7 +1752,7 @@ void general_write_handler(void *data)
|
|||||||
{
|
{
|
||||||
#if defined(__CELLOS_LV2__) && (CELL_SDK_VERSION > 0x340000)
|
#if defined(__CELLOS_LV2__) && (CELL_SDK_VERSION > 0x340000)
|
||||||
cellSysutilEnableBgmPlayback();
|
cellSysutilEnableBgmPlayback();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -2032,7 +2032,7 @@ static bool setting_append_list_input_player_options(
|
|||||||
(*list)[list_info->index - 1].action_right = &setting_action_right_libretro_device_type;
|
(*list)[list_info->index - 1].action_right = &setting_action_right_libretro_device_type;
|
||||||
(*list)[list_info->index - 1].action_select = &setting_action_right_libretro_device_type;
|
(*list)[list_info->index - 1].action_select = &setting_action_right_libretro_device_type;
|
||||||
(*list)[list_info->index - 1].action_start = &setting_action_start_libretro_device_type;
|
(*list)[list_info->index - 1].action_start = &setting_action_start_libretro_device_type;
|
||||||
(*list)[list_info->index - 1].get_string_representation =
|
(*list)[list_info->index - 1].get_string_representation =
|
||||||
&setting_get_string_representation_uint_libretro_device;
|
&setting_get_string_representation_uint_libretro_device;
|
||||||
menu_settings_list_current_add_enum_idx(list, list_info, (enum msg_hash_enums)(MENU_ENUM_LABEL_INPUT_LIBRETRO_DEVICE + user));
|
menu_settings_list_current_add_enum_idx(list, list_info, (enum msg_hash_enums)(MENU_ENUM_LABEL_INPUT_LIBRETRO_DEVICE + user));
|
||||||
|
|
||||||
@ -2053,7 +2053,7 @@ static bool setting_append_list_input_player_options(
|
|||||||
(*list)[list_info->index - 1].action_right = &setting_action_right_analog_dpad_mode;
|
(*list)[list_info->index - 1].action_right = &setting_action_right_analog_dpad_mode;
|
||||||
(*list)[list_info->index - 1].action_select = &setting_action_right_analog_dpad_mode;
|
(*list)[list_info->index - 1].action_select = &setting_action_right_analog_dpad_mode;
|
||||||
(*list)[list_info->index - 1].action_start = &setting_action_start_analog_dpad_mode;
|
(*list)[list_info->index - 1].action_start = &setting_action_start_analog_dpad_mode;
|
||||||
(*list)[list_info->index - 1].get_string_representation =
|
(*list)[list_info->index - 1].get_string_representation =
|
||||||
&setting_get_string_representation_uint_analog_dpad_mode;
|
&setting_get_string_representation_uint_analog_dpad_mode;
|
||||||
menu_settings_list_current_add_enum_idx(list, list_info, (enum msg_hash_enums)(MENU_ENUM_LABEL_INPUT_PLAYER_ANALOG_DPAD_MODE + user));
|
menu_settings_list_current_add_enum_idx(list, list_info, (enum msg_hash_enums)(MENU_ENUM_LABEL_INPUT_PLAYER_ANALOG_DPAD_MODE + user));
|
||||||
|
|
||||||
@ -2147,7 +2147,7 @@ static bool setting_append_list_input_player_options(
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (system->input_desc_btn[user][i])
|
if (system->input_desc_btn[user][i])
|
||||||
strlcat(label,
|
strlcat(label,
|
||||||
system->input_desc_btn[user][i],
|
system->input_desc_btn[user][i],
|
||||||
sizeof(label));
|
sizeof(label));
|
||||||
else
|
else
|
||||||
@ -3017,7 +3017,7 @@ static bool setting_append_list(
|
|||||||
general_write_handler,
|
general_write_handler,
|
||||||
general_read_handler);
|
general_read_handler);
|
||||||
menu_settings_list_current_add_range(list, list_info, 0, 3, 1.0, true, true);
|
menu_settings_list_current_add_range(list, list_info, 0, 3, 1.0, true, true);
|
||||||
(*list)[list_info->index - 1].get_string_representation =
|
(*list)[list_info->index - 1].get_string_representation =
|
||||||
&setting_get_string_representation_uint_libretro_log_level;
|
&setting_get_string_representation_uint_libretro_log_level;
|
||||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
||||||
|
|
||||||
@ -3132,7 +3132,7 @@ static bool setting_append_list(
|
|||||||
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_AUTOSAVE_INIT);
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_AUTOSAVE_INIT);
|
||||||
menu_settings_list_current_add_range(list, list_info, 0, 0, 1, true, false);
|
menu_settings_list_current_add_range(list, list_info, 0, 0, 1, true, false);
|
||||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_CMD_APPLY_AUTO);
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_CMD_APPLY_AUTO);
|
||||||
(*list)[list_info->index - 1].get_string_representation =
|
(*list)[list_info->index - 1].get_string_representation =
|
||||||
&setting_get_string_representation_uint_autosave_interval;
|
&setting_get_string_representation_uint_autosave_interval;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -3259,7 +3259,7 @@ static bool setting_append_list(
|
|||||||
general_read_handler);
|
general_read_handler);
|
||||||
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_REINIT);
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_REINIT);
|
||||||
menu_settings_list_current_add_range(list, list_info, 0, 1, 1, true, false);
|
menu_settings_list_current_add_range(list, list_info, 0, 1, 1, true, false);
|
||||||
(*list)[list_info->index - 1].get_string_representation =
|
(*list)[list_info->index - 1].get_string_representation =
|
||||||
&setting_get_string_representation_uint_video_monitor_index;
|
&setting_get_string_representation_uint_video_monitor_index;
|
||||||
|
|
||||||
if (video_driver_has_windowed())
|
if (video_driver_has_windowed())
|
||||||
@ -3357,7 +3357,7 @@ static bool setting_append_list(
|
|||||||
(*list)[list_info->index - 1].action_start = &setting_action_start_video_refresh_rate_auto;
|
(*list)[list_info->index - 1].action_start = &setting_action_start_video_refresh_rate_auto;
|
||||||
(*list)[list_info->index - 1].action_ok = &setting_action_ok_video_refresh_rate_auto;
|
(*list)[list_info->index - 1].action_ok = &setting_action_ok_video_refresh_rate_auto;
|
||||||
(*list)[list_info->index - 1].action_select = &setting_action_ok_video_refresh_rate_auto;
|
(*list)[list_info->index - 1].action_select = &setting_action_ok_video_refresh_rate_auto;
|
||||||
(*list)[list_info->index - 1].get_string_representation =
|
(*list)[list_info->index - 1].get_string_representation =
|
||||||
&setting_get_string_representation_st_float_video_refresh_rate_auto;
|
&setting_get_string_representation_st_float_video_refresh_rate_auto;
|
||||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
||||||
|
|
||||||
@ -3407,7 +3407,7 @@ static bool setting_append_list(
|
|||||||
true,
|
true,
|
||||||
true);
|
true);
|
||||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_CMD_APPLY_AUTO);
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_CMD_APPLY_AUTO);
|
||||||
(*list)[list_info->index - 1].get_string_representation =
|
(*list)[list_info->index - 1].get_string_representation =
|
||||||
&setting_get_string_representation_uint_aspect_ratio_index;
|
&setting_get_string_representation_uint_aspect_ratio_index;
|
||||||
|
|
||||||
CONFIG_FLOAT(
|
CONFIG_FLOAT(
|
||||||
@ -3636,7 +3636,7 @@ static bool setting_append_list(
|
|||||||
general_write_handler,
|
general_write_handler,
|
||||||
general_read_handler);
|
general_read_handler);
|
||||||
menu_settings_list_current_add_range(list, list_info, 0, 3, 1, true, true);
|
menu_settings_list_current_add_range(list, list_info, 0, 3, 1, true, true);
|
||||||
(*list)[list_info->index - 1].get_string_representation =
|
(*list)[list_info->index - 1].get_string_representation =
|
||||||
&setting_get_string_representation_uint_video_rotation;
|
&setting_get_string_representation_uint_video_rotation;
|
||||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
||||||
|
|
||||||
@ -3981,7 +3981,7 @@ static bool setting_append_list(
|
|||||||
&settings->uints.audio_latency,
|
&settings->uints.audio_latency,
|
||||||
MENU_ENUM_LABEL_AUDIO_LATENCY,
|
MENU_ENUM_LABEL_AUDIO_LATENCY,
|
||||||
MENU_ENUM_LABEL_VALUE_AUDIO_LATENCY,
|
MENU_ENUM_LABEL_VALUE_AUDIO_LATENCY,
|
||||||
g_defaults.settings.out_latency ?
|
g_defaults.settings.out_latency ?
|
||||||
g_defaults.settings.out_latency : out_latency,
|
g_defaults.settings.out_latency : out_latency,
|
||||||
&group_info,
|
&group_info,
|
||||||
&subgroup_info,
|
&subgroup_info,
|
||||||
@ -4656,7 +4656,7 @@ static bool setting_append_list(
|
|||||||
&retro_keybinds_1[i],
|
&retro_keybinds_1[i],
|
||||||
&group_info, &subgroup_info, parent_group);
|
&group_info, &subgroup_info, parent_group);
|
||||||
(*list)[list_info->index - 1].bind_type = i + MENU_SETTINGS_BIND_BEGIN;
|
(*list)[list_info->index - 1].bind_type = i + MENU_SETTINGS_BIND_BEGIN;
|
||||||
menu_settings_list_current_add_enum_idx(list, list_info,
|
menu_settings_list_current_add_enum_idx(list, list_info,
|
||||||
(enum msg_hash_enums)(MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN + i));
|
(enum msg_hash_enums)(MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN + i));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5052,6 +5052,22 @@ static bool setting_append_list(
|
|||||||
SD_FLAG_ADVANCED
|
SD_FLAG_ADVANCED
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CONFIG_BOOL(
|
||||||
|
list, list_info,
|
||||||
|
&settings->bools.menu_horizontal_animation,
|
||||||
|
MENU_ENUM_LABEL_MENU_HORIZONTAL_ANIMATION,
|
||||||
|
MENU_ENUM_LABEL_VALUE_MENU_HORIZONTAL_ANIMATION,
|
||||||
|
true,
|
||||||
|
MENU_ENUM_LABEL_VALUE_OFF,
|
||||||
|
MENU_ENUM_LABEL_VALUE_ON,
|
||||||
|
&group_info,
|
||||||
|
&subgroup_info,
|
||||||
|
parent_group,
|
||||||
|
general_write_handler,
|
||||||
|
general_read_handler,
|
||||||
|
SD_FLAG_ADVANCED
|
||||||
|
);
|
||||||
|
|
||||||
#ifdef RARCH_MOBILE
|
#ifdef RARCH_MOBILE
|
||||||
/* We don't want mobile users being able to switch this off. */
|
/* We don't want mobile users being able to switch this off. */
|
||||||
(*list)[list_info->index - 1].action_left = NULL;
|
(*list)[list_info->index - 1].action_left = NULL;
|
||||||
@ -5413,7 +5429,7 @@ static bool setting_append_list(
|
|||||||
general_read_handler,
|
general_read_handler,
|
||||||
SD_FLAG_NONE);
|
SD_FLAG_NONE);
|
||||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@ -5801,7 +5817,7 @@ static bool setting_append_list(
|
|||||||
menu_settings_list_current_add_range(list, list_info, 0, 0, 1.0, true, false);
|
menu_settings_list_current_add_range(list, list_info, 0, 0, 1.0, true, false);
|
||||||
|
|
||||||
END_SUB_GROUP(list, list_info, parent_group);
|
END_SUB_GROUP(list, list_info, parent_group);
|
||||||
|
|
||||||
START_SUB_GROUP(list, list_info, "Playlist", &group_info, &subgroup_info, parent_group);
|
START_SUB_GROUP(list, list_info, "Playlist", &group_info, &subgroup_info, parent_group);
|
||||||
|
|
||||||
CONFIG_BOOL(
|
CONFIG_BOOL(
|
||||||
@ -5818,9 +5834,9 @@ static bool setting_append_list(
|
|||||||
general_write_handler,
|
general_write_handler,
|
||||||
general_read_handler,
|
general_read_handler,
|
||||||
SD_FLAG_NONE);
|
SD_FLAG_NONE);
|
||||||
|
|
||||||
END_SUB_GROUP(list, list_info, parent_group);
|
END_SUB_GROUP(list, list_info, parent_group);
|
||||||
|
|
||||||
END_GROUP(list, list_info, parent_group);
|
END_GROUP(list, list_info, parent_group);
|
||||||
break;
|
break;
|
||||||
case SETTINGS_LIST_CHEEVOS:
|
case SETTINGS_LIST_CHEEVOS:
|
||||||
@ -5913,7 +5929,7 @@ static bool setting_append_list(
|
|||||||
sizeof(settings->paths.network_buildbot_url),
|
sizeof(settings->paths.network_buildbot_url),
|
||||||
MENU_ENUM_LABEL_CORE_UPDATER_BUILDBOT_URL,
|
MENU_ENUM_LABEL_CORE_UPDATER_BUILDBOT_URL,
|
||||||
MENU_ENUM_LABEL_VALUE_CORE_UPDATER_BUILDBOT_URL,
|
MENU_ENUM_LABEL_VALUE_CORE_UPDATER_BUILDBOT_URL,
|
||||||
buildbot_server_url,
|
buildbot_server_url,
|
||||||
&group_info,
|
&group_info,
|
||||||
&subgroup_info,
|
&subgroup_info,
|
||||||
parent_group,
|
parent_group,
|
||||||
@ -5927,7 +5943,7 @@ static bool setting_append_list(
|
|||||||
sizeof(settings->paths.network_buildbot_assets_url),
|
sizeof(settings->paths.network_buildbot_assets_url),
|
||||||
MENU_ENUM_LABEL_BUILDBOT_ASSETS_URL,
|
MENU_ENUM_LABEL_BUILDBOT_ASSETS_URL,
|
||||||
MENU_ENUM_LABEL_VALUE_BUILDBOT_ASSETS_URL,
|
MENU_ENUM_LABEL_VALUE_BUILDBOT_ASSETS_URL,
|
||||||
buildbot_assets_server_url,
|
buildbot_assets_server_url,
|
||||||
&group_info,
|
&group_info,
|
||||||
&subgroup_info,
|
&subgroup_info,
|
||||||
parent_group,
|
parent_group,
|
||||||
@ -6445,7 +6461,7 @@ static bool setting_append_list(
|
|||||||
true,
|
true,
|
||||||
true);
|
true);
|
||||||
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_MENU_REFRESH);
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_MENU_REFRESH);
|
||||||
(*list)[list_info->index - 1].get_string_representation =
|
(*list)[list_info->index - 1].get_string_representation =
|
||||||
&setting_get_string_representation_uint_user_language;
|
&setting_get_string_representation_uint_user_language;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -6510,7 +6526,7 @@ static bool setting_append_list(
|
|||||||
parent_group,
|
parent_group,
|
||||||
general_write_handler,
|
general_write_handler,
|
||||||
general_read_handler);
|
general_read_handler);
|
||||||
(*list)[list_info->index - 1].get_string_representation =
|
(*list)[list_info->index - 1].get_string_representation =
|
||||||
&setting_get_string_representation_cheevos_password;
|
&setting_get_string_representation_cheevos_password;
|
||||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
||||||
#endif
|
#endif
|
||||||
@ -6548,7 +6564,7 @@ static bool setting_append_list(
|
|||||||
sizeof(settings->paths.directory_core_assets),
|
sizeof(settings->paths.directory_core_assets),
|
||||||
MENU_ENUM_LABEL_CORE_ASSETS_DIRECTORY,
|
MENU_ENUM_LABEL_CORE_ASSETS_DIRECTORY,
|
||||||
MENU_ENUM_LABEL_VALUE_CORE_ASSETS_DIRECTORY,
|
MENU_ENUM_LABEL_VALUE_CORE_ASSETS_DIRECTORY,
|
||||||
g_defaults.dirs[DEFAULT_DIR_CORE_ASSETS],
|
g_defaults.dirs[DEFAULT_DIR_CORE_ASSETS],
|
||||||
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
||||||
&group_info,
|
&group_info,
|
||||||
&subgroup_info,
|
&subgroup_info,
|
||||||
@ -6592,7 +6608,7 @@ static bool setting_append_list(
|
|||||||
sizeof(settings->paths.directory_thumbnails),
|
sizeof(settings->paths.directory_thumbnails),
|
||||||
MENU_ENUM_LABEL_THUMBNAILS_DIRECTORY,
|
MENU_ENUM_LABEL_THUMBNAILS_DIRECTORY,
|
||||||
MENU_ENUM_LABEL_VALUE_THUMBNAILS_DIRECTORY,
|
MENU_ENUM_LABEL_VALUE_THUMBNAILS_DIRECTORY,
|
||||||
g_defaults.dirs[DEFAULT_DIR_THUMBNAILS],
|
g_defaults.dirs[DEFAULT_DIR_THUMBNAILS],
|
||||||
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
||||||
&group_info,
|
&group_info,
|
||||||
&subgroup_info,
|
&subgroup_info,
|
||||||
@ -7002,7 +7018,7 @@ static rarch_setting_t *menu_setting_new_internal(rarch_setting_info_t *list_inf
|
|||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
rarch_setting_t* resized_list = NULL;
|
rarch_setting_t* resized_list = NULL;
|
||||||
enum settings_list_type list_types[] =
|
enum settings_list_type list_types[] =
|
||||||
{
|
{
|
||||||
SETTINGS_LIST_MAIN_MENU,
|
SETTINGS_LIST_MAIN_MENU,
|
||||||
SETTINGS_LIST_DRIVERS,
|
SETTINGS_LIST_DRIVERS,
|
||||||
|
@ -664,6 +664,7 @@ enum msg_hash_enums
|
|||||||
MENU_LABEL(MOUSE_ENABLE),
|
MENU_LABEL(MOUSE_ENABLE),
|
||||||
MENU_LABEL(POINTER_ENABLE),
|
MENU_LABEL(POINTER_ENABLE),
|
||||||
MENU_LABEL(MENU_LINEAR_FILTER),
|
MENU_LABEL(MENU_LINEAR_FILTER),
|
||||||
|
MENU_LABEL(MENU_HORIZONTAL_ANIMATION),
|
||||||
MENU_LABEL(NAVIGATION_WRAPAROUND),
|
MENU_LABEL(NAVIGATION_WRAPAROUND),
|
||||||
MENU_LABEL(SHOW_ADVANCED_SETTINGS),
|
MENU_LABEL(SHOW_ADVANCED_SETTINGS),
|
||||||
MENU_LABEL(THREADED_DATA_RUNLOOP_ENABLE),
|
MENU_LABEL(THREADED_DATA_RUNLOOP_ENABLE),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user