Merge remote-tracking branch 'TasVideos/master'

This commit is contained in:
mjbudd77 2021-12-02 22:37:37 -05:00
commit 01d87a6576
1 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@
//#include <unistd.h>
//#include <fcntl.h>
#include <cerrno>
#include <cstring>
//#define MAX_JOYSTICKS 32
@ -414,7 +415,7 @@ int GamePad_t::init(int port, const char *guid, const char *profile)
// If we get to this point and still have not found a
// game controller, then load default keyboard.
if ((portNum == 0) && (devIdx < 0))
if ((portNum == 0 || strnlen(profile, 1) > 0) && (devIdx < 0))
{
if (loadProfile(profile))
{