mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-25 10:58:52 -06:00
refactor: read data dirs and inherits in one place
This commit is contained in:
1 parent
7be8a7cd7b
commit
67cb99606d
12 files changed
+73
-61
No files matched your search
@@ -1309,10 +1309,9 @@ def _requested_platforms(args: argparse.Namespace, parser: argparse.ArgumentPars
|
||||
|
||||
def _refresh_data_directories(args: argparse.Namespace, data_registry: dict) -> None:
|
||||
"""Bring the data directory caches up to date before a build reads them."""
|
||||
from packs.datadirs import load_registry, refresh_all
|
||||
from packs.datadirs import refresh_all
|
||||
|
||||
registry = load_registry(os.path.join(args.platforms_dir, "_data_dirs.yml"))
|
||||
results = refresh_all(registry, force=args.refresh_data)
|
||||
results = refresh_all(data_registry, force=args.refresh_data)
|
||||
updated = sum(1 for v in results.values() if v)
|
||||
if updated:
|
||||
print(f"Refreshed {updated} data director{'ies' if updated > 1 else 'y'}")
|
||||
|
||||
Reference in new issue
Block a user