sdl: code cleanup
This commit is contained in:
parent
e900502eaf
commit
a8f5011c89
|
@ -509,11 +509,11 @@ int main(int argc, char *argv[])
|
||||||
// these six lines will still print the help output
|
// these six lines will still print the help output
|
||||||
if(argc > 1)
|
if(argc > 1)
|
||||||
{
|
{
|
||||||
if(!strcmp(argv[1], "--help") || !strcmp(argv[1],"-h"))
|
if(!strcmp(argv[1], "--help") || !strcmp(argv[1],"-h"))
|
||||||
{
|
{
|
||||||
ShowUsage(argv[0]);
|
ShowUsage(argv[0]);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int error, frameskip;
|
int error, frameskip;
|
||||||
|
@ -563,10 +563,10 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
#ifdef _GTK
|
#ifdef _GTK
|
||||||
else if(strcmp(argv[i], "--nogui") == 0)
|
else if(strcmp(argv[i], "--nogui") == 0)
|
||||||
{
|
{
|
||||||
noGui = 1;
|
noGui = 1;
|
||||||
argv[i] = "";
|
argv[i] = "";
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
int romIndex = g_config->parse(argc, argv);
|
int romIndex = g_config->parse(argc, argv);
|
||||||
|
@ -583,17 +583,17 @@ int main(int argc, char *argv[])
|
||||||
std::string s;
|
std::string s;
|
||||||
|
|
||||||
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
|
||||||
{
|
{
|
||||||
int t;
|
int t;
|
||||||
g_config->getOption("SDL.Input.FamicomPad2.EnableMic", &t);
|
g_config->getOption("SDL.Input.FamicomPad2.EnableMic", &t);
|
||||||
if (t)
|
if(t)
|
||||||
replaceP2StartWithMicrophone = t;
|
replaceP2StartWithMicrophone = t;
|
||||||
}
|
}
|
||||||
|
|
||||||
// update the input devices
|
// update the input devices
|
||||||
|
|
Loading…
Reference in New Issue