mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-21 10:15:28 +00:00
(360 RMenu XUI) Add rewind granularity
This commit is contained in:
parent
de9231f071
commit
cc856940b3
@ -375,6 +375,9 @@ void rmenu_settings_create_menu_item_label(char * str, unsigned setting, size_t
|
||||
case S_LBL_SAVE_STATE_SLOT:
|
||||
snprintf(str, size, "Save State #%d", g_extern.state_slot);
|
||||
break;
|
||||
case S_LBL_REWIND_GRANULARITY:
|
||||
snprintf(str, size, "Rewind granularity: %d", g_settings.rewind_granularity);
|
||||
break;
|
||||
case S_LBL_ZIP_EXTRACT:
|
||||
if (g_extern.lifecycle_mode_state & (1ULL << MODE_UNZIP_TO_CURDIR))
|
||||
snprintf(str, size, "INFO - Unzip Mode: Current dir.");
|
||||
|
@ -106,6 +106,7 @@ enum
|
||||
S_LBL_LOAD_STATE_SLOT,
|
||||
S_LBL_SAVE_STATE_SLOT,
|
||||
S_LBL_ZIP_EXTRACT,
|
||||
S_LBL_REWIND_GRANULARITY,
|
||||
};
|
||||
|
||||
void rmenu_settings_set(unsigned setting);
|
||||
|
@ -399,6 +399,8 @@ HRESULT CRetroArchSettings::OnInit(XUIMessageInit * pInitData, BOOL& bHandled)
|
||||
m_settingslist.SetText(SETTING_SCALE_FACTOR, strw_buffer);
|
||||
rmenu_settings_create_menu_item_label_w(strw_buffer, S_LBL_ZIP_EXTRACT, sizeof(strw_buffer));
|
||||
m_settingslist.SetText(SETTING_ZIP_EXTRACT, strw_buffer);
|
||||
rmenu_settings_create_menu_item_label_w(strw_buffer, S_LBL_REWIND_GRANULARITY, sizeof(strw_buffer));
|
||||
m_settingslist.SetText(SETTING_EMU_REWIND_GRANULARITY, strw_buffer);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -423,6 +425,12 @@ HRESULT CRetroArchSettings::OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled
|
||||
if (g_extern.lifecycle_mode_state & (1ULL << MODE_INFO_DRAW))
|
||||
rmenu_settings_msg(S_MSG_RESTART_RARCH, S_DELAY_180);
|
||||
break;
|
||||
case SETTING_EMU_REWIND_GRANULARITY:
|
||||
g_settings.rewind_granularity++;
|
||||
|
||||
rmenu_settings_create_menu_item_label_w(strw_buffer, S_LBL_REWIND_GRANULARITY, sizeof(strw_buffer));
|
||||
m_settingslist.SetText(SETTING_EMU_REWIND_GRANULARITY, strw_buffer);
|
||||
break;
|
||||
case SETTING_EMU_SHOW_INFO_MSG:
|
||||
if (g_extern.lifecycle_mode_state & (1ULL << MODE_INFO_DRAW))
|
||||
g_extern.lifecycle_mode_state &= ~(1ULL << MODE_INFO_DRAW);
|
||||
@ -525,6 +533,13 @@ HRESULT CRetroArchSettings::OnControlNavigate(XUIMessageControlNavigate *pContro
|
||||
if (g_extern.lifecycle_mode_state & (1ULL << MODE_INFO_DRAW))
|
||||
rmenu_settings_msg(S_MSG_RESTART_RARCH, S_DELAY_180);
|
||||
break;
|
||||
case SETTING_EMU_REWIND_GRANULARITY:
|
||||
if (g_settings.rewind_granularity > 1)
|
||||
g_settings.rewind_granularity--;
|
||||
|
||||
rmenu_settings_create_menu_item_label_w(strw_buffer, S_LBL_REWIND_GRANULARITY, sizeof(strw_buffer));
|
||||
m_settingslist.SetText(SETTING_EMU_REWIND_GRANULARITY, strw_buffer);
|
||||
break;
|
||||
case SETTING_EMU_SHOW_INFO_MSG:
|
||||
if (g_extern.lifecycle_mode_state & (1ULL << MODE_INFO_DRAW))
|
||||
g_extern.lifecycle_mode_state &= ~(1ULL << MODE_INFO_DRAW);
|
||||
@ -626,6 +641,12 @@ HRESULT CRetroArchSettings::OnControlNavigate(XUIMessageControlNavigate *pContro
|
||||
if (g_extern.lifecycle_mode_state & (1ULL << MODE_INFO_DRAW))
|
||||
rmenu_settings_msg(S_MSG_RESTART_RARCH, S_DELAY_180);
|
||||
break;
|
||||
case SETTING_EMU_REWIND_GRANULARITY:
|
||||
g_settings.rewind_granularity++;
|
||||
|
||||
rmenu_settings_create_menu_item_label_w(strw_buffer, S_LBL_REWIND_GRANULARITY, sizeof(strw_buffer));
|
||||
m_settingslist.SetText(SETTING_EMU_REWIND_GRANULARITY, strw_buffer);
|
||||
break;
|
||||
case SETTING_SCALE_FACTOR:
|
||||
if(device_ptr->fbo_inited)
|
||||
{
|
||||
|
@ -23,6 +23,7 @@
|
||||
enum
|
||||
{
|
||||
SETTING_EMU_REWIND_ENABLED = 0,
|
||||
SETTING_EMU_REWIND_GRANULARITY,
|
||||
SETTING_EMU_SHOW_INFO_MSG,
|
||||
SETTING_EMU_SHOW_DEBUG_INFO_MSG,
|
||||
SETTING_EMU_MENUS,
|
||||
|
@ -31,6 +31,7 @@
|
||||
<Height>383.040009</Height>
|
||||
<Position>44.880005,64.959991,0.000000</Position>
|
||||
<ItemsText>Rewind:
|
||||
Rewind granularity:
|
||||
Info messages:
|
||||
Debug info messages:
|
||||
Menus:
|
||||
|
@ -31,6 +31,7 @@
|
||||
<Height>232.720001</Height>
|
||||
<Position>44.880005,64.959991,0.000000</Position>
|
||||
<ItemsText>Rewind:
|
||||
Rewind granularity:
|
||||
Info messages:
|
||||
Debug info messages:
|
||||
Menus:
|
||||
|
Loading…
x
Reference in New Issue
Block a user