(Win32) Add State Index menubar options

This commit is contained in:
twinaphex 2015-01-15 07:58:31 +01:00
parent 0959fd2243
commit 834f7f119e
3 changed files with 20 additions and 0 deletions

View File

@ -336,6 +336,11 @@ static LRESULT win32_menu_loop(WPARAM wparam)
g_extern.pending.windowed_scale = idx;
cmd = RARCH_CMD_RESIZE_WINDOWED_SCALE;
}
if (mode >= ID_M_STATE_INDEX_AUTO && mode <= (ID_M_STATE_INDEX_AUTO+10))
{
signed idx = (mode - (ID_M_STATE_INDEX_AUTO));
g_settings.state_slot = idx;
}
if (cmd != RARCH_CMD_NONE)
rarch_main_command(cmd);

View File

@ -15,6 +15,20 @@ BEGIN
BEGIN
POPUP "Save State Options"
BEGIN
POPUP "State Index"
BEGIN
MENUITEM "-1 (Auto)", ID_M_STATE_INDEX_AUTO
MENUITEM "0", ID_M_STATE_INDEX_AUTO + 1
MENUITEM "1", ID_M_STATE_INDEX_AUTO + 2
MENUITEM "2", ID_M_STATE_INDEX_AUTO + 3
MENUITEM "3", ID_M_STATE_INDEX_AUTO + 4
MENUITEM "4", ID_M_STATE_INDEX_AUTO + 5
MENUITEM "5", ID_M_STATE_INDEX_AUTO + 6
MENUITEM "6", ID_M_STATE_INDEX_AUTO + 7
MENUITEM "7", ID_M_STATE_INDEX_AUTO + 8
MENUITEM "8", ID_M_STATE_INDEX_AUTO + 9
MENUITEM "9", ID_M_STATE_INDEX_AUTO + 10
END
MENUITEM "Load State", ID_M_LOAD_STATE
MENUITEM "Save State", ID_M_SAVE_STATE
END

View File

@ -24,3 +24,4 @@
#define ID_M_WINDOW_SCALE_10X 40021
#define ID_M_FULL_SCREEN 40022
#define ID_M_MOUSE_GRAB 40023
#define ID_M_STATE_INDEX_AUTO 40024