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
@@ -1456,10 +1456,13 @@ def generate_emulator_pack(
with _writing_pack(zip_path) as zf:
for emu_name, profile in sorted(selected):
pack_structure = profile.get("pack_structure")
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 = [
@@ -4648,6 +4651,7 @@ from packextras import ( # noqa: E402,F401
platform_region_groups,
emulator_region_drops,
_emulator_region_group,
expand_agnostic_entries,
)