Don't accept a directory as config file parameter

This commit is contained in:
Cacodemon345
2022-04-24 22:23:49 +06:00
committed by GitHub
parent 01d6407c5c
commit bbb467a2b7

View File

@@ -507,7 +507,7 @@ usage:
rom_add_path(rpath);
} else if (!strcasecmp(argv[c], "--config") ||
!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];
} else if (!strcasecmp(argv[c], "--vmname") ||