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++)
|
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);
|
||||||
|
|
|
@ -614,8 +614,8 @@ int main(int argc, char *argv[])
|
||||||
g_config->getOption("SDL.InputCfg", &s);
|
g_config->getOption("SDL.InputCfg", &s);
|
||||||
if(s.size() != 0)
|
if(s.size() != 0)
|
||||||
{
|
{
|
||||||
InitVideo(GameInfo);
|
InitVideo(GameInfo);
|
||||||
InputCfg(s);
|
InputCfg(s);
|
||||||
}
|
}
|
||||||
// set the FAMICOM PAD 2 Mic thing
|
// set the FAMICOM PAD 2 Mic thing
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue