mirror of
https://github.com/86Box/86Box.git
synced 2025-01-23 09:42:47 -05:00
Merge pull request #2302 from Cacodemon345/patch-73
Don't accept a directory as config file parameter
This commit is contained in:
commit
91646e473d
1 changed files with 1 additions and 1 deletions
|
@ -507,7 +507,7 @@ usage:
|
||||||
rom_add_path(rpath);
|
rom_add_path(rpath);
|
||||||
} else if (!strcasecmp(argv[c], "--config") ||
|
} else if (!strcasecmp(argv[c], "--config") ||
|
||||||
!strcasecmp(argv[c], "-C")) {
|
!strcasecmp(argv[c], "-C")) {
|
||||||
if ((c+1) == argc) goto usage;
|
if ((c+1) == argc || plat_dir_check(argv[c + 1])) goto usage;
|
||||||
|
|
||||||
cfg = argv[++c];
|
cfg = argv[++c];
|
||||||
} else if (!strcasecmp(argv[c], "--vmname") ||
|
} else if (!strcasecmp(argv[c], "--vmname") ||
|
||||||
|
|
Loading…
Reference in a new issue