(360) Add LBL_LOAD_STATE_SLOT and LBL_SAVE_STATE_SLOT

This commit is contained in:
TwinAphex51224 2012-05-29 22:12:28 +02:00
parent fcdeed2a82
commit 841304619d
3 changed files with 14 additions and 6 deletions

View File

@ -317,8 +317,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));
rarch_settings_create_menu_item_label(strw_buffer, S_LBL_LOAD_STATE_SLOT, sizeof(strw_buffer));
m_quickmenulist.SetText(MENU_ITEM_LOAD_STATE, strw_buffer);
rarch_settings_create_menu_item_label(strw_buffer, S_LBL_SAVE_STATE_SLOT, sizeof(strw_buffer));
m_quickmenulist.SetText(MENU_ITEM_SAVE_STATE, strw_buffer);
return 0;
@ -340,8 +342,9 @@ HRESULT CRetroArchQuickMenu::OnControlNavigate(XUIMessageControlNavigate *pContr
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));
rarch_settings_create_menu_item_label(strw_buffer, S_LBL_LOAD_STATE_SLOT, sizeof(strw_buffer));
m_quickmenulist.SetText(MENU_ITEM_LOAD_STATE, strw_buffer);
rarch_settings_create_menu_item_label(strw_buffer, S_LBL_SAVE_STATE_SLOT, sizeof(strw_buffer));
m_quickmenulist.SetText(MENU_ITEM_SAVE_STATE, strw_buffer);
break;
case MENU_ITEM_KEEP_ASPECT_RATIO:
@ -364,8 +367,9 @@ HRESULT CRetroArchQuickMenu::OnControlNavigate(XUIMessageControlNavigate *pContr
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));
rarch_settings_create_menu_item_label(strw_buffer, S_LBL_LOAD_STATE_SLOT, sizeof(strw_buffer));
m_quickmenulist.SetText(MENU_ITEM_LOAD_STATE, strw_buffer);
rarch_settings_create_menu_item_label(strw_buffer, S_LBL_SAVE_STATE_SLOT, sizeof(strw_buffer));
m_quickmenulist.SetText(MENU_ITEM_SAVE_STATE, strw_buffer);
break;
case MENU_ITEM_KEEP_ASPECT_RATIO:

View File

@ -234,12 +234,15 @@ void rarch_settings_create_menu_item_label(char * str, unsigned setting, size_t
case S_LBL_ROTATION:
snprintf(str, SIZEOF_STR, "Rotation: %s", rotation_lut[g_console.screen_orientation]);
break;
case S_LBL_STATE_SLOT:
case S_LBL_LOAD_STATE_SLOT:
snprintf(str, SIZEOF_STR, "Load State #%d", g_extern.state_slot);
break;
case S_LBL_SAVE_STATE_SLOT:
snprintf(str, SIZEOF_STR, "Save State #%d", g_extern.state_slot);
break;
}
#ifdef _XBOX
rarch_convert_char_to_wchar(strwbuf, str, size);
#endif
}
}

View File

@ -84,7 +84,8 @@ enum
S_LBL_SHADER,
S_LBL_SHADER_2,
S_LBL_SCALE_FACTOR,
S_LBL_STATE_SLOT,
S_LBL_LOAD_STATE_SLOT,
S_LBL_SAVE_STATE_SLOT,
};
void rarch_settings_change(unsigned setting);