mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-04-13 12:22:33 -05:00
feat: generate_pack.py integrates data directory refresh and packing
This commit is contained in:
@@ -125,6 +125,16 @@ def load_platform_config(platform_name: str, platforms_dir: str = "platforms") -
|
||||
return config
|
||||
|
||||
|
||||
def load_data_dir_registry(platforms_dir: str = "platforms") -> dict:
|
||||
"""Load the data directory registry from _data_dirs.yml."""
|
||||
registry_path = os.path.join(platforms_dir, "_data_dirs.yml")
|
||||
if not os.path.exists(registry_path):
|
||||
return {}
|
||||
with open(registry_path) as f:
|
||||
data = yaml.safe_load(f) or {}
|
||||
return data.get("data_directories", {})
|
||||
|
||||
|
||||
def resolve_local_file(
|
||||
file_entry: dict,
|
||||
db: dict,
|
||||
|
||||
Reference in New Issue
Block a user