Add EVENT_CMD_SET_FRAME_LIMIT callback to limit maximum run speed too

This commit is contained in:
twinaphex 2015-08-27 14:27:57 +02:00
parent fc763f5e25
commit 805e2ffde3

View File

@ -2944,6 +2944,7 @@ static bool setting_append_list_frame_throttling_options(
parent_group,
general_write_handler,
general_read_handler);
menu_settings_list_current_add_cmd(list, list_info, EVENT_CMD_SET_FRAME_LIMIT);
CONFIG_FLOAT(
settings->fastforward_ratio,
@ -2957,7 +2958,7 @@ static bool setting_append_list_frame_throttling_options(
general_write_handler,
general_read_handler);
menu_settings_list_current_add_cmd(list, list_info, EVENT_CMD_SET_FRAME_LIMIT);
menu_settings_list_current_add_range(list, list_info, 1, 10, 0.1, true, true);
menu_settings_list_current_add_range(list, list_info, 1, 10, 1.0, true, true);
CONFIG_FLOAT(
settings->slowmotion_ratio,