{\r
int i;\r
\r
- sel++;\r
for (i = sel + 1; ; i++) {\r
if (i >= len)\r
i = 1;\r
break;\r
}\r
\r
- return i - 1;\r
+ return i;\r
}\r
\r
static const char *menu_loop_romsel(char *curr_path, int len,\r
if (player_idx >= 0) {\r
can_combo = 0;\r
type = IN_BINDTYPE_PLAYER12 + (player_idx >> 1);\r
+ if (player_idx & 1)\r
+ action_mask <<= 16;\r
}\r
- if (player_idx & 1)\r
- action_mask <<= 16;\r
\r
if (dev_id >= 0)\r
dev = dev_last = dev_id;\r
\r
dev_id = -1; // show all\r
mask_shift = 0;\r
- if (player_idx & 1)\r
- mask_shift = 16;\r
- bindtype = IN_BINDTYPE_EMU;\r
- if (player_idx >= 0)\r
- bindtype = IN_BINDTYPE_PLAYER12 + (player_idx >> 1);\r
+ if (player_idx >= 0) {\r
+ if (player_idx & 1)\r
+ mask_shift = 16;\r
+ bindtype = IN_BINDTYPE_PLAYER12 + (player_idx >> 1);\r
+ } else\r
+ bindtype = IN_BINDTYPE_EMU;\r
\r
for (;;)\r
{\r