mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
(Menu) Cleanups
This commit is contained in:
parent
6f71440c98
commit
84e2a6d983
@ -21,9 +21,8 @@ static int action_bind_down_generic(unsigned type, const char *label)
|
||||
{
|
||||
unsigned scroll_speed = 0;
|
||||
menu_navigation_t *nav = menu_navigation_get_ptr();
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
menu_list_t *menu_list = menu_list_get_ptr();
|
||||
if (!menu || !menu_list || !nav)
|
||||
if (!menu_list || !nav)
|
||||
return -1;
|
||||
|
||||
scroll_speed = (max(nav->scroll.acceleration, 2) - 2) / 4 + 1;
|
||||
|
@ -642,7 +642,7 @@ static int action_ok_record_configfile_load(const char *path,
|
||||
|
||||
fill_pathname_join(global->record.config, menu_path, path, sizeof(global->record.config));
|
||||
|
||||
menu_list_flush_stack(menu_list, "Recording Settings", 0);
|
||||
menu_list_flush_stack(menu_list, menu_hash_to_str(MENU_VALUE_RECORDING_SETTINGS), 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -20,9 +20,8 @@ static int action_bind_up_generic(unsigned type, const char *label)
|
||||
{
|
||||
unsigned scroll_speed = 0;
|
||||
menu_navigation_t *nav = menu_navigation_get_ptr();
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
menu_list_t *menu_list = menu_list_get_ptr();
|
||||
if (!menu || !menu_list)
|
||||
if (!menu_list)
|
||||
return -1;
|
||||
|
||||
scroll_speed = (max(nav->scroll.acceleration, 2) - 2) / 4 + 1;
|
||||
|
@ -22,6 +22,8 @@ const char *menu_hash_to_str(uint32_t hash)
|
||||
{
|
||||
switch (hash)
|
||||
{
|
||||
case MENU_VALUE_RECORDING_SETTINGS:
|
||||
return "Recording Settings";
|
||||
case MENU_VALUE_MAIN_MENU:
|
||||
return "Main Menu";
|
||||
case MENU_VALUE_SETTINGS:
|
||||
|
@ -179,6 +179,7 @@ extern "C" {
|
||||
#define MENU_VALUE_HORIZONTAL_MENU 0x35761704U
|
||||
#define MENU_VALUE_MAIN_MENU 0x1625971fU
|
||||
#define MENU_VALUE_SETTINGS 0x8aca3ff6U
|
||||
#define MENU_VALUE_RECORDING_SETTINGS 0x1a80b313U
|
||||
#define MENU_VALUE_INPUT_SETTINGS 0xddd30846U
|
||||
#define MENU_VALUE_ON 0x005974c2U
|
||||
#define MENU_VALUE_OFF 0x0b880c40U
|
||||
|
Loading…
x
Reference in New Issue
Block a user