fix: fill placeholders in emulator packs

LRPS2 declares only <bios>.bin, so its emulator pack shipped no PS2 BIOS. The images in the folder another PS2 profile proves by hash, of the declared size, now take the placeholder's place in the pack and in verify.
This commit is contained in:
Abdessamad Derraz committed 2026-10-19 04:11:19 +02:00
1 parent 11fe7fada2
commit 5ce2b44a57
4 files changed
+194 -8

No files matched your search

+8 -4
View File
@@ -1556,6 +1556,7 @@ def verify_emulator(
same list would be narrowed, through the emulator pack's own drop set.
`system_ids` keeps the entries of those systems, as the system pack does.
"""
from packextras import expand_agnostic_entries
from packpaths import (
_archive_destination,
_register_path,
@@ -1623,10 +1624,13 @@ def verify_emulator(
placed[dest.lower()] = (path, owner, dest)
_register_path(dest, placed_files, placed_parents)
for emu_name, profile in sorted(selected):
files = expand_directory_entries(
filter_files_by_mode(profile.get("files", []), standalone),
db,
standalone,
files = expand_agnostic_entries(
expand_directory_entries(
filter_files_by_mode(profile.get("files", []), standalone),
db,
standalone,
),
emu_name, profile, db, standalone, all_profiles,
)
if system_ids:
files = [fe for fe in files if entry_serves_systems(fe, profile, system_ids)]