gtk port: quit on unsupported savetype in command line option
This commit is contained in:
parent
ee53e4c03a
commit
e585142003
|
@ -272,6 +272,11 @@ fill_configured_features( struct configured_features *config,
|
|||
if (argc > 2)
|
||||
goto error;
|
||||
|
||||
if (config->savetype < 0 || config->savetype > 6) {
|
||||
g_printerr("Accepted savetypes are from 0 to 6.\n");
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (config->firmware_language < -1 || config->firmware_language > 5) {
|
||||
g_printerr("Firmware language must be set to a value from 0 to 5.\n");
|
||||
goto error;
|
||||
|
|
Loading…
Reference in New Issue