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
@@ -1519,7 +1519,7 @@ def verify_emulator(
if regions:
from packextras import emulator_region_drops
region_drops = emulator_region_drops(selected, standalone, regions)
region_drops = emulator_region_drops(selected, standalone, regions, db=db)
# The emulator pack walks profiles in name order and keeps the first
# file at a path, folding case: a later profile's different file there