mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-21 00:57:50 -06:00
fix: platform entries skip other emulators' trees
A platform entry names no profile, so bios/Other/<emulator>/ was never foreign to it. EmuELEC's ports/VVVVVV/data.zip resolved to xrick's data.zip, then to xrick's data directory copy. A system that lists its cores now takes no name match only another emulator's tree answers.
This commit is contained in:
1 parent
35ad19ff02
commit
402e688b01
4 files changed
+122
-20
No files matched your search
@@ -1035,13 +1035,18 @@ def _split_contract(config: dict) -> tuple[dict, dict]:
|
||||
"""
|
||||
allowed = _contract_keys()
|
||||
contract = {key: value for key, value in config.items() if key in allowed}
|
||||
# platform_system is the resolver's copy of the key each entry sits under.
|
||||
# platform_system and platform_cores are the resolver's copies of the key
|
||||
# each entry sits under and of that system's cores.
|
||||
if isinstance(contract.get("systems"), dict):
|
||||
contract["systems"] = {
|
||||
sys_id: {
|
||||
**system,
|
||||
"files": [
|
||||
{k: v for k, v in f.items() if k != "platform_system"}
|
||||
{
|
||||
k: v
|
||||
for k, v in f.items()
|
||||
if k not in ("platform_system", "platform_cores")
|
||||
}
|
||||
for f in system["files"]
|
||||
],
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user