mirror of https://github.com/mgba-emu/mgba.git
Check if we have a subparser before trying to use it
This commit is contained in:
parent
6bbb1d5b43
commit
754d3f50ce
|
@ -50,7 +50,7 @@ bool parseCommandArgs(struct StartupOptions* opts, int argc, char* const* argv,
|
||||||
"g"
|
"g"
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
if (subparser->extraOptions) {
|
if (subparser && subparser->extraOptions) {
|
||||||
// TODO: modularize options to subparsers
|
// TODO: modularize options to subparsers
|
||||||
strncat(options, subparser->extraOptions, sizeof(options) - strlen(options) - 1);
|
strncat(options, subparser->extraOptions, sizeof(options) - strlen(options) - 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue