Bug fix for loading gamepad config at startup.

This commit is contained in:
Matthew Budd 2020-05-16 10:40:57 -04:00
parent 01c60c4dc1
commit 00e316b521
2 changed files with 3 additions and 3 deletions

View File

@ -2145,7 +2145,7 @@ UpdateInput (Config * config)
for (unsigned int i = 0; i < GAMEPAD_NUM_DEVICES; i++) for (unsigned int i = 0; i < GAMEPAD_NUM_DEVICES; i++)
{ {
char buf[64]; char buf[64];
snprintf (buf, 32, "SDL.Input.GamePad.%d.", i); snprintf (buf, 32, "SDL.Input.GamePad.%d", i);
prefix = buf; prefix = buf;
config->getOption (prefix + "DeviceType", &device); config->getOption (prefix + "DeviceType", &device);