mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-16 16:33:27 -05:00
refactor: let the retropie core check take none
This commit is contained in:
1 parent
ebe4a1bbcc
commit
c8a30de493
1 file changed
+2
-2
@@ -176,7 +176,7 @@ class Exporter(BaseExporter):
|
|||||||
return names
|
return names
|
||||||
|
|
||||||
@staticmethod
|
@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.
|
"""Whether the package's own core needs the file.
|
||||||
|
|
||||||
The merged `required` is true when any core needs it: pcsx_rearmed
|
The merged `required` is true when any core needs it: pcsx_rearmed
|
||||||
@@ -259,7 +259,7 @@ class Exporter(BaseExporter):
|
|||||||
candidates = [
|
candidates = [
|
||||||
fe
|
fe
|
||||||
for fe in files
|
for fe in files
|
||||||
if self._required_for(fe, core or "")
|
if self._required_for(fe, core)
|
||||||
and not (
|
and not (
|
||||||
{fe.name.lower()}
|
{fe.name.lower()}
|
||||||
| {str(a).lower() for a in (fe.native("aliases", []) or [])}
|
| {str(a).lower() for a in (fe.native("aliases", []) or [])}
|
||||||
|
|||||||
Reference in new issue
Block a user