mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-24 02:27:52 -06:00
refactor: one predicate for the pack notes
This commit is contained in:
1 parent
66c83b06b0
commit
cf7e13808f
7 files changed
+30
-32
No files matched your search
@@ -3,18 +3,9 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import re
|
||||
|
||||
from core.paths import EMULATORS_DIR
|
||||
from model.registry import load_data_dir_registry
|
||||
from packs.paths import MEDIA_MARKER
|
||||
|
||||
# Members the builder writes for the reader or the device rather than for a
|
||||
# core: the documents, and the empty marker an Android pack carries.
|
||||
PACK_NOTES = re.compile(
|
||||
r"(^README\.txt$|^manifest\.json$|(^|/)(INSTRUCTIONS|RENAMED)_[^/]*\.txt$"
|
||||
rf"|(^|/){re.escape(MEDIA_MARKER)}$)"
|
||||
)
|
||||
|
||||
|
||||
def tree_members(
|
||||
|
||||
Reference in new issue
Block a user