fix: keep a held file in emulator region packs

Emulator mode reduced region groups without knowing which files the
collection holds, so a requested-region image nobody had collected
withdrew the held one and left the slot empty. Platform mode already
kept it; both emulator readers now pass the database.
This commit is contained in:
Abdessamad Derraz committed 2026-10-18 03:52:47 +02:00
1 parent a40a68c1f7
commit 2dcb49fa4c
4 files changed
+47 -3

No files matched your search

+1 -1
View File
@@ -1351,7 +1351,7 @@ def generate_emulator_pack(
os.makedirs(output_dir, exist_ok=True)
region_drops: set[str] = (
emulator_region_drops(selected, standalone, regions, required_only)
emulator_region_drops(selected, standalone, regions, required_only, db)
if regions
else set()
)