Bug fix for loading gamepad config at startup.
This commit is contained in:
parent
01c60c4dc1
commit
00e316b521
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue