mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-18 17:33:30 -05:00
fix: refuse a platform list where one is taken
generate_pack split --platform on commas to validate it, then used the whole string as one platform and crashed. Every script takes a single platform; a list is refused with a message pointing at --all.
This commit is contained in:
1 parent
1bdfb8d75e
commit
9ba63e6a54
3 files changed
+40
-2
No files matched your search
@@ -2917,8 +2917,7 @@ def _main(held: contextlib.ExitStack) -> None:
|
||||
args = parser.parse_args()
|
||||
packresolve.set_offline(bool(args.offline))
|
||||
if args.platform:
|
||||
for name in args.platform.split(","):
|
||||
require_platform(name.strip(), args.platforms_dir)
|
||||
require_platform(args.platform, args.platforms_dir)
|
||||
|
||||
_refuse_unapplied_flags(args, parser)
|
||||
if args.target:
|
||||
|
||||
Reference in new issue
Block a user