mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-31 08:33:40 +00:00
Fix index issues with joypads.
This commit is contained in:
parent
5249a36279
commit
e7e5363465
@ -31,7 +31,7 @@
|
||||
|
||||
|
||||
static int g_player = 1;
|
||||
static int g_joypad = 1;
|
||||
static int g_joypad = 0;
|
||||
static char *g_in_path = NULL;
|
||||
static char *g_out_path = NULL;
|
||||
|
||||
@ -84,7 +84,7 @@ void get_binds(config_file_t *conf, int player, int joypad)
|
||||
int num = SDL_NumJoysticks();
|
||||
if (joypad >= num)
|
||||
{
|
||||
fprintf(stderr, "Cannot find joystick at index #%d, only have %d joystick(s) available ...\n", joypad + 1, num);
|
||||
fprintf(stderr, "Cannot find joystick at index #%d, only have %d joystick(s) available ...\n", joypad, num);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user