From 31e86b6db53b0dce49dd939c4e6b8df2c893408c Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Tue, 6 Oct 2026 07:05:05 +0200 Subject: [PATCH] refactor: let the retropie core check take none --- scripts/exporter/retropie_exporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/exporter/retropie_exporter.py b/scripts/exporter/retropie_exporter.py index c09b2d24..3eeb6b8f 100644 --- a/scripts/exporter/retropie_exporter.py +++ b/scripts/exporter/retropie_exporter.py @@ -176,7 +176,7 @@ class Exporter(BaseExporter): return names @staticmethod - def _required_for(fe: NativeFile, core: str) -> bool: + def _required_for(fe: NativeFile, core: str | None) -> bool: """Whether the package's own core needs the file. The merged `required` is true when any core needs it: pcsx_rearmed @@ -259,7 +259,7 @@ class Exporter(BaseExporter): candidates = [ fe for fe in files - if self._required_for(fe, core or "") + if self._required_for(fe, core) and not ( {fe.name.lower()} | {str(a).lower() for a in (fe.native("aliases", []) or [])}