mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-22 02:44:38 +00:00
(360) Can increment/decrement save state slots now in Quick Menu
This commit is contained in:
parent
321697f029
commit
5f0991c052
18
360/menu.cpp
18
360/menu.cpp
@ -316,6 +316,10 @@ HRESULT CRetroArchQuickMenu::OnInit(XUIMessageInit * pInitData, BOOL& bHandled)
|
||||
|
||||
rarch_settings_create_menu_item_label(strw_buffer, S_LBL_ASPECT_RATIO, sizeof(strw_buffer));
|
||||
m_quickmenulist.SetText(MENU_ITEM_KEEP_ASPECT_RATIO, strw_buffer);
|
||||
|
||||
rarch_settings_create_menu_item_label(strw_buffer, S_LBL_STATE_SLOT, sizeof(strw_buffer));
|
||||
m_quickmenulist.SetText(MENU_ITEM_LOAD_STATE, strw_buffer);
|
||||
m_quickmenulist.SetText(MENU_ITEM_SAVE_STATE, strw_buffer);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -333,6 +337,13 @@ HRESULT CRetroArchQuickMenu::OnControlNavigate(XUIMessageControlNavigate *pContr
|
||||
case XUI_CONTROL_NAVIGATE_LEFT:
|
||||
switch(current_index)
|
||||
{
|
||||
case MENU_ITEM_LOAD_STATE:
|
||||
case MENU_ITEM_SAVE_STATE:
|
||||
rarch_state_slot_decrease();
|
||||
rarch_settings_create_menu_item_label(strw_buffer, S_LBL_STATE_SLOT, sizeof(strw_buffer));
|
||||
m_quickmenulist.SetText(MENU_ITEM_LOAD_STATE, strw_buffer);
|
||||
m_quickmenulist.SetText(MENU_ITEM_SAVE_STATE, strw_buffer);
|
||||
break;
|
||||
case MENU_ITEM_KEEP_ASPECT_RATIO:
|
||||
rarch_settings_change(S_ASPECT_RATIO_DECREMENT);
|
||||
aspectratio_changed = true;
|
||||
@ -350,6 +361,13 @@ HRESULT CRetroArchQuickMenu::OnControlNavigate(XUIMessageControlNavigate *pContr
|
||||
case XUI_CONTROL_NAVIGATE_RIGHT:
|
||||
switch(current_index)
|
||||
{
|
||||
case MENU_ITEM_LOAD_STATE:
|
||||
case MENU_ITEM_SAVE_STATE:
|
||||
rarch_state_slot_increase();
|
||||
rarch_settings_create_menu_item_label(strw_buffer, S_LBL_STATE_SLOT, sizeof(strw_buffer));
|
||||
m_quickmenulist.SetText(MENU_ITEM_LOAD_STATE, strw_buffer);
|
||||
m_quickmenulist.SetText(MENU_ITEM_SAVE_STATE, strw_buffer);
|
||||
break;
|
||||
case MENU_ITEM_KEEP_ASPECT_RATIO:
|
||||
rarch_settings_change(S_ASPECT_RATIO_INCREMENT);
|
||||
aspectratio_changed = true;
|
||||
|
@ -223,6 +223,9 @@ void rarch_settings_create_menu_item_label(wchar_t * strwbuf, unsigned setting,
|
||||
case S_LBL_ROTATION:
|
||||
snprintf(str, sizeof(str), "Rotation: %s", rotation_lut[g_console.screen_orientation]);
|
||||
break;
|
||||
case S_LBL_STATE_SLOT:
|
||||
snprintf(str, sizeof(str), "Load State #%d", g_extern.state_slot);
|
||||
break;
|
||||
}
|
||||
|
||||
rarch_convert_char_to_wchar(strwbuf, str, size);
|
||||
|
@ -82,7 +82,8 @@ enum
|
||||
S_LBL_ROTATION,
|
||||
S_LBL_SHADER,
|
||||
S_LBL_SHADER_2,
|
||||
S_LBL_SCALE_FACTOR
|
||||
S_LBL_SCALE_FACTOR,
|
||||
S_LBL_STATE_SLOT,
|
||||
};
|
||||
|
||||
void rarch_settings_change(unsigned setting);
|
||||
|
Loading…
x
Reference in New Issue
Block a user