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++)
{
char buf[64];
snprintf (buf, 32, "SDL.Input.GamePad.%d.", i);
snprintf (buf, 32, "SDL.Input.GamePad.%d", i);
prefix = buf;
config->getOption (prefix + "DeviceType", &device);

View File

@ -614,8 +614,8 @@ int main(int argc, char *argv[])
g_config->getOption("SDL.InputCfg", &s);
if(s.size() != 0)
{
InitVideo(GameInfo);
InputCfg(s);
InitVideo(GameInfo);
InputCfg(s);
}
// set the FAMICOM PAD 2 Mic thing
{