mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-10 13:33:24 -05:00
refactor: let the retropie core check take none
This commit is contained in:
1 parent
da5e95cd0f
commit
31e86b6db5
1 file changed
+2
-2
@@ -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 [])}
|
||||
|
||||
Reference in new issue
Block a user