mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-01 05:48:52 -06:00
refactor: return the emulator pack outcome
This commit is contained in:
1 parent
8a9591dad2
commit
83f7693ccb
6 files changed
+182
-88
No files matched your search
@@ -2,14 +2,12 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import contextlib
|
||||
import io
|
||||
import re
|
||||
from pathlib import PurePosixPath
|
||||
|
||||
from core.paths import REPO_ROOT
|
||||
from packs.archive import PackRecord
|
||||
from packs.emulatorpack import generate_emulator_pack
|
||||
from packs.emulatorpack import build_emulator_pack
|
||||
from packs.manifestentry import manifest_entry
|
||||
|
||||
|
||||
@@ -223,13 +221,11 @@ def standalone_layouts(
|
||||
if "standalone" not in str(profile.get("type", "")):
|
||||
continue
|
||||
record = PackRecord()
|
||||
with contextlib.redirect_stdout(io.StringIO()), \
|
||||
contextlib.redirect_stderr(io.StringIO()):
|
||||
generate_emulator_pack(
|
||||
[name], emulators_dir, db, bios_dir, "", standalone=True,
|
||||
zip_contents=zip_contents, offline=offline,
|
||||
platforms_dir=platforms_dir, record=record,
|
||||
)
|
||||
build_emulator_pack(
|
||||
[name], emulators_dir, db, bios_dir, "", standalone=True,
|
||||
zip_contents=zip_contents, offline=offline,
|
||||
platforms_dir=platforms_dir, record=record,
|
||||
)
|
||||
items: list = []
|
||||
for member in record.files:
|
||||
entry, _size = manifest_entry(
|
||||
|
||||
Reference in new issue
Block a user