mirror of
https://github.com/Abdess/retrobios.git
synced 2026-06-19 10:32:47 +00:00
feat: generate_pack.py integrates data directory refresh and packing
This commit is contained in:
parent
976e5fbd41
commit
c9e2bf8d33
2 changed files with 49 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue