mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-03 14:58:51 -06:00
fix: report no mismatch from another system's file
A same-named file that fails the size or content check an entry declares was returned as its hash mismatch wherever it was filed. NanoBoyAdvance's 16 KB bios.bin was reported as the 64 KB PCem PC BIOS. The mismatch fallback now leaves out another emulator's tree and any maker folder the entry's system does not name.
This commit is contained in:
1 parent
74ba20ac10
commit
4e01cff854
3 files changed
+81
-2
No files matched your search
@@ -61,6 +61,11 @@ def system_makers(file_entry: dict, db: dict) -> frozenset[str]:
|
||||
sys_id = str(file_entry.get("platform_system") or "")
|
||||
if not sys_id or owner_tokens(file_entry):
|
||||
return frozenset()
|
||||
return makers_named_by(sys_id, db)
|
||||
|
||||
|
||||
def makers_named_by(sys_id: str, db: dict) -> frozenset[str]:
|
||||
"""The maker folders a system id names: nintendo-gba names Nintendo."""
|
||||
return frozenset(
|
||||
folder for folder in _maker_folders(db) if names_manufacturer(sys_id, folder)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user