mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-18 09:23:26 -05:00
fix: refuse a --bios-dir that does not exist
This commit is contained in:
1 parent
4240c98359
commit
b23f5b04ad
7 files changed
+57
-1
No files matched your search
@@ -29,6 +29,7 @@ from pathlib import Path
|
||||
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
from common import (
|
||||
require_directory,
|
||||
list_registered_platforms,
|
||||
load_database,
|
||||
load_platform_config,
|
||||
@@ -429,6 +430,7 @@ def main() -> None:
|
||||
"--create-issues", action="store_true", help="Output GitHub Issue bodies"
|
||||
)
|
||||
args = parser.parse_args()
|
||||
require_directory(args.bios_dir)
|
||||
|
||||
if not os.path.exists(args.db):
|
||||
print(f"Error: {args.db} not found. Run generate_db.py first.", file=sys.stderr)
|
||||
|
||||
Reference in new issue
Block a user