mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-03 06:48:52 -06:00
fix: place hash-selected files like the platform
The hash-selected pack decided a declaration's place with a string prefix test on base_destination, so Batocera's bios_CD_U.bin and bios7.bin stayed at the root of the pack while scph5501.bin went under bios/. platform_destination in packs/paths.py now places a platform declaration for the platform pack, the manifest and the --from-md5 pack.
This commit is contained in:
1 parent
3344cfd2fb
commit
d2f4ef6f9c
5 files changed
+56
-12
No files matched your search
@@ -50,7 +50,7 @@ from packs.manifestentry import (
|
||||
record_unplaceable,
|
||||
)
|
||||
from packs.manifestselect import SelectionIndex
|
||||
from packs.paths import save_layout
|
||||
from packs.paths import platform_destination, save_layout
|
||||
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
|
||||
@@ -255,12 +255,11 @@ class _ManifestBuild:
|
||||
for file_entry in system.get("files", []):
|
||||
if opts.required_only and file_entry.get("required") is False:
|
||||
continue
|
||||
dest = sanitize_pack_path(file_entry.get("destination", file_entry["name"]))
|
||||
dest, full_dest = platform_destination(file_entry, self.base_dest)
|
||||
if not dest:
|
||||
continue
|
||||
if self.region_drops and dest in self.region_drops:
|
||||
continue
|
||||
full_dest = f"{self.base_dest}/{dest}" if self.base_dest else dest
|
||||
yield sys_id, file_entry, dest, full_dest
|
||||
|
||||
def declaration_order(self, full_dest: str) -> list[tuple[list[str], dict, str]]:
|
||||
|
||||
Reference in new issue
Block a user