mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 22:05:38 +00:00
Fixed error reporting for -input-system option.
This commit is contained in:
parent
e724d0ec0b
commit
0716285fc2
|
@ -1309,9 +1309,13 @@ int main(int argc, char **argv)
|
||||||
CmdLine.Set("Global", "FragmentShader", &argv[i][13]);
|
CmdLine.Set("Global", "FragmentShader", &argv[i][13]);
|
||||||
}
|
}
|
||||||
#ifdef SUPERMODEL_WIN32
|
#ifdef SUPERMODEL_WIN32
|
||||||
else if (!strncmp(argv[i],"-input-system=", 14)) // this setting is not written to the config file!
|
else if (!strncmp(argv[i],"-input-system", 13)) // this setting is not written to the config file!
|
||||||
{
|
{
|
||||||
if (argv[i][14] == '\0')
|
if (argv[i][13] == '\0')
|
||||||
|
ErrorLog("-input-system requires an input system name.");
|
||||||
|
else if (argv[i][13] != '=')
|
||||||
|
ErrorLog("Ignoring unrecognized option: %s.", argv[i]);
|
||||||
|
else if (argv[i][14] == '\0')
|
||||||
ErrorLog("-input-system requires an input system name.");
|
ErrorLog("-input-system requires an input system name.");
|
||||||
else
|
else
|
||||||
inputSystem = &argv[i][14];
|
inputSystem = &argv[i][14];
|
||||||
|
|
Loading…
Reference in a new issue