fix: title pack systems from the given collection

system_titles read the site's installed sections, loaded from the repository's database.json and profiles, so a manifest built with --db and --emulators-dir titled its systems from another collection. The lookup now takes the console sections, and the manifest builds them from its own db, bios folder and profiles.
This commit is contained in:
Abdessamad Derraz committed 2026-11-21 16:43:46 +01:00
1 parent 8787f453c7
commit 69d29e786a
5 files changed
+144 -29

No files matched your search

+5 -2
View File
@@ -53,7 +53,7 @@ from packs.manifestentry import (
)
from packs.manifestselect import SelectionIndex
from packs.paths import save_layout
from packs.scope import platform_list_version, system_titles
from packs.scope import pack_sections, platform_list_version, system_titles
from packs.standalone import standalone_copies, standalone_layouts
from resolve.contentlayout import TARGET_KEY
from resolve.cores import filter_systems_by_target, resolve_platform_cores as _platform_cores
@@ -550,7 +550,10 @@ class _ManifestBuild:
# The names the platform itself gives its systems (Batocera's psx),
# which --system accepts beside the ids.
"system_names": platform_system_names(config, list(pack_systems)),
"system_titles": system_titles(manifest_files, omitted.values()),
"system_titles": system_titles(
pack_sections(self.db, self.bios_dir, opts.emulators_dir),
manifest_files, omitted.values(),
),
"files": manifest_files,
}
if self.data_directories: