mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-04-17 06:12:33 -05:00
fix: filter pattern placeholders, skip standalone exclusions for standalone platforms
This commit is contained in:
@@ -247,6 +247,9 @@ def find_undeclared_files(
|
|||||||
fname = f.get("name", "")
|
fname = f.get("name", "")
|
||||||
if not fname or fname in seen:
|
if not fname or fname in seen:
|
||||||
continue
|
continue
|
||||||
|
# Skip pattern placeholders (e.g., <user-selected>.bin)
|
||||||
|
if "<" in fname or ">" in fname or "*" in fname:
|
||||||
|
continue
|
||||||
# Mode filtering: skip files incompatible with platform's usage
|
# Mode filtering: skip files incompatible with platform's usage
|
||||||
file_mode = f.get("mode")
|
file_mode = f.get("mode")
|
||||||
if file_mode == "standalone" and not is_standalone:
|
if file_mode == "standalone" and not is_standalone:
|
||||||
@@ -322,7 +325,13 @@ def find_exclusion_notes(
|
|||||||
})
|
})
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Count standalone-only files
|
# Count standalone-only files — but only report as excluded if the
|
||||||
|
# platform does NOT use this emulator in standalone mode
|
||||||
|
standalone_set = set(str(c) for c in config.get("standalone_cores", []))
|
||||||
|
is_standalone = emu_name in standalone_set or bool(
|
||||||
|
standalone_set & {str(c) for c in profile.get("cores", [])}
|
||||||
|
)
|
||||||
|
if not is_standalone:
|
||||||
standalone_files = [f for f in profile.get("files", []) if f.get("mode") == "standalone"]
|
standalone_files = [f for f in profile.get("files", []) if f.get("mode") == "standalone"]
|
||||||
if standalone_files:
|
if standalone_files:
|
||||||
names = [f["name"] for f in standalone_files[:3]]
|
names = [f["name"] for f in standalone_files[:3]]
|
||||||
|
|||||||
Reference in New Issue
Block a user