Skip to content

Commit

Permalink
(Win32) Add State Index menubar options
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Jan 15, 2015
1 parent 0959fd2 commit 834f7f1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gfx/drivers_context/wgl_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
14 changes: 14 additions & 0 deletions media/rarch.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions win32/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 834f7f1

Please sign in to comment.