mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-28 12:28:51 -06:00
refactor: define the pack suffix once
packs.parts held a second PACK_SUFFIX and five builders typed the literal; all read model.releaserecord.PACK_SUFFIX.
This commit is contained in:
1 parent
71b3d7db63
commit
f5946a7845
5 files changed
+11
-10
No files matched your search
@@ -26,6 +26,7 @@ from model.profiles import (
|
||||
select_emulator_profiles,
|
||||
)
|
||||
from model.registry import load_data_dir_registry
|
||||
from model.releaserecord import PACK_SUFFIX
|
||||
from packs.archive import (
|
||||
PackRecord,
|
||||
Placed,
|
||||
@@ -492,7 +493,7 @@ def generate_emulator_pack(
|
||||
)
|
||||
)
|
||||
zip_name = options.get("pack_name") or bounded_pack_name(
|
||||
display_names, [n for n, _p in selected], f"{narrow_tags}_BIOS_Pack.zip"
|
||||
display_names, [n for n, _p in selected], f"{narrow_tags}{PACK_SUFFIX}"
|
||||
)
|
||||
zip_path = os.path.join(output_dir, zip_name)
|
||||
if record is None:
|
||||
@@ -589,7 +590,7 @@ def generate_system_pack(
|
||||
# The selection mode is part of the name: `--system sega-triforce`
|
||||
# and `--emulator triforce` both wrote Triforce_BIOS_Pack.zip, and
|
||||
# the second run replaced the first without a word.
|
||||
final_name = f"{sys_display}_System{tags}_BIOS_Pack.zip"
|
||||
final_name = f"{sys_display}_System{tags}{PACK_SUFFIX}"
|
||||
scratch = tempfile.mkdtemp(prefix=".system-", dir=output_dir)
|
||||
try:
|
||||
result = generate_emulator_pack(
|
||||
|
||||
Reference in new issue
Block a user