mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 05:15:28 +00:00
Fixed getting the controller index when specifying --virtual (thanks @zturtleman)
This commit is contained in:
parent
5953422c09
commit
e3fd8feae6
|
@ -820,7 +820,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
}
|
||||
if (argv[i] && *argv[i] != '-') {
|
||||
controller_index = SDL_atoi(argv[1]);
|
||||
controller_index = SDL_atoi(argv[i]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue