mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-10 21:43:23 -05:00
fix: drop the --include-extras flag nothing read
This commit is contained in:
1 parent
514becd784
commit
e3173b1fc5
8 files changed
+8
-22
No files matched your search
@@ -583,7 +583,6 @@ def generate_pack(
|
||||
db: dict,
|
||||
bios_dir: str,
|
||||
output_dir: str,
|
||||
include_extras: bool = False,
|
||||
emulators_dir: str = "emulators",
|
||||
zip_contents: dict | None = None,
|
||||
data_registry: dict | None = None,
|
||||
@@ -2353,7 +2352,6 @@ def _run_platform_packs(
|
||||
db,
|
||||
args.bios_dir,
|
||||
args.output_dir,
|
||||
include_extras=args.include_extras,
|
||||
emulators_dir=args.emulators_dir,
|
||||
zip_contents=zip_contents,
|
||||
data_registry=data_registry,
|
||||
@@ -2590,11 +2588,6 @@ def main():
|
||||
parser.add_argument("--db", default=DEFAULT_DB_FILE, help="Path to database.json")
|
||||
parser.add_argument("--bios-dir", default=DEFAULT_BIOS_DIR)
|
||||
parser.add_argument("--output-dir", "-o", default=DEFAULT_OUTPUT_DIR)
|
||||
parser.add_argument(
|
||||
"--include-extras",
|
||||
action="store_true",
|
||||
help="(no-op) Core requirements are always included",
|
||||
)
|
||||
parser.add_argument("--emulators-dir", default="emulators")
|
||||
parser.add_argument(
|
||||
"--offline",
|
||||
|
||||
@@ -317,12 +317,6 @@ def main():
|
||||
parser.add_argument(
|
||||
"--output-dir", default="dist", help="Pack output directory (default: dist/)"
|
||||
)
|
||||
# --include-extras is now a no-op: core requirements are always included
|
||||
parser.add_argument(
|
||||
"--include-extras",
|
||||
action="store_true",
|
||||
help="(no-op) Core requirements are always included",
|
||||
)
|
||||
parser.add_argument("--target", "-t", help="Hardware target (e.g., switch, rpi4)")
|
||||
parser.add_argument("--source", choices=["platform", "truth", "full"], default="full")
|
||||
parser.add_argument("--all-variants", action="store_true")
|
||||
@@ -525,8 +519,6 @@ def main():
|
||||
pack_cmd.append("--include-archived")
|
||||
if args.offline:
|
||||
pack_cmd.append("--offline")
|
||||
if args.include_extras:
|
||||
pack_cmd.append("--include-extras")
|
||||
if args.target:
|
||||
pack_cmd.extend(["--target", args.target])
|
||||
if args.source != "full":
|
||||
|
||||
@@ -201,7 +201,7 @@ class PackCarriesADirectory(DirectoryFixture):
|
||||
out.mkdir()
|
||||
zip_path = builder.generate_pack(
|
||||
"demo", str(self.platforms), self._db(), str(self.bios), str(out),
|
||||
include_extras=True, emulators_dir=str(self.emulators),
|
||||
emulators_dir=str(self.emulators),
|
||||
emu_profiles=profiles, offline=True,
|
||||
)
|
||||
with zipfile.ZipFile(zip_path) as archive:
|
||||
|
||||
@@ -6018,6 +6018,9 @@ struct BurnDriver BurnDrvneogeo = {
|
||||
(["--from-md5", "d8f1"], ["--include-archived"], "refuse"),
|
||||
(["--platform", "retroarch", "--verify-packs"], ["--include-archived"],
|
||||
"refuse"),
|
||||
# Documented as adding core files, read by nothing.
|
||||
(["--emulator", "handy"], ["--include-extras"], "refuse"),
|
||||
(["--system", "atari-lynx"], ["--include-extras"], "refuse"),
|
||||
]
|
||||
for mode, flag, expected in matrix:
|
||||
with self.subTest(mode=mode, flag=flag):
|
||||
|
||||
@@ -123,7 +123,7 @@ class ManifestStatesWhatThePackHolds(PackCountFixture):
|
||||
out.mkdir()
|
||||
zip_path = builder.generate_pack(
|
||||
"demo", str(self.platforms), self.db, str(self.bios), str(out),
|
||||
include_extras=True, emulators_dir=str(self.emulators),
|
||||
emulators_dir=str(self.emulators),
|
||||
emu_profiles=self.profiles, data_registry=self.registry,
|
||||
offline=True,
|
||||
)
|
||||
@@ -184,7 +184,7 @@ class ManifestFollowsTheBuilder(PackCountFixture):
|
||||
out.mkdir(exist_ok=True)
|
||||
zip_path = builder.generate_pack(
|
||||
"demo", str(self.platforms), self.db, str(self.bios), str(out),
|
||||
include_extras=True, emulators_dir=str(self.emulators),
|
||||
emulators_dir=str(self.emulators),
|
||||
emu_profiles=self.profiles, data_registry=self.registry,
|
||||
offline=True,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ class FailedPlatformFailsTheRun(unittest.TestCase):
|
||||
return argparse.Namespace(
|
||||
all_variants=False, source="full", required_only=False,
|
||||
platforms_dir="platforms", target=None, split=False,
|
||||
include_extras=False, emulators_dir="emulators", regions=[],
|
||||
emulators_dir="emulators", regions=[],
|
||||
one_per_slot=False, offline=True, bios_dir="bios",
|
||||
output_dir=self.tmp.name, verify_packs=False,
|
||||
)
|
||||
|
||||
@@ -119,7 +119,7 @@ class GroupRenameKeepsSystemTag(unittest.TestCase):
|
||||
args = argparse.Namespace(
|
||||
all_variants=False, source="full", required_only=False,
|
||||
platforms_dir="platforms", target=None, split=False,
|
||||
include_extras=False, emulators_dir="emulators", regions=[],
|
||||
emulators_dir="emulators", regions=[],
|
||||
one_per_slot=False, offline=True, bios_dir="bios",
|
||||
output_dir=tmp,
|
||||
)
|
||||
|
||||
@@ -190,8 +190,6 @@ would have loaded.
|
||||
region is kept whole rather than emptied
|
||||
- `--one-per-slot`: keep one file per system and declared region, ranked by the
|
||||
`priority:` the emulator source states, lowest first
|
||||
- `--include-extras`: with `--emulator` or `--system`, add the files the cores
|
||||
pull in beyond the selection
|
||||
- `--db`, `--platforms-dir`, `--emulators-dir`: read another database or source
|
||||
tree instead of the repository's
|
||||
- `--source {platform,truth,full}`: select file source (platform YAML only, emulator profiles only, or both)
|
||||
|
||||
Reference in new issue
Block a user