mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-02 22:38:54 -06:00
refactor: size --list-cores with core_files
This commit is contained in:
1 parent
f7157a5191
commit
06f87cf957
5 files changed
+13
-21
No files matched your search
+1
-1
@@ -16,7 +16,7 @@
|
||||
# and Invoke-WebRequest throws on a cut transfer before the hash is read:
|
||||
# the site's build rewrites this line there (scripts/sitebootstrap.py).
|
||||
$mismatchAdvice = "The download was most likely cut short: try again. Within minutes of an update of this project the two files can come from caches of different ages. Waiting five minutes settles that."
|
||||
$defaultInstallSha256 = "8a5606206be6b53db269d6003d13a22487c4dde99c7121aaef608e65eb2546c3"
|
||||
$defaultInstallSha256 = "c56f884f958819a641571ee75eeee8b14b6ecd24e2fd24229944418c104c3cb9"
|
||||
# The pin above refuses any changed byte: this cap only stops a body that
|
||||
# cannot be the installer (a sign-in portal's page) before it is hashed.
|
||||
$maximumInstallerBytes = 8MB
|
||||
|
||||
+1
-5
@@ -22200,11 +22200,7 @@ def _print_choices(
|
||||
labels = {name: _system_label(name, manifest) if systems else name for name in names}
|
||||
width = min(max(len(label) for label in labels.values()), 40)
|
||||
for name in names:
|
||||
held = (
|
||||
[f for f in files if _chosen(f, {name})]
|
||||
if systems
|
||||
else _filter_by_target([f for f in files if f.get("cores") is not None], [name])
|
||||
)
|
||||
held = [f for f in files if _chosen(f, {name})] if systems else core_files(files, name)
|
||||
print(f" {labels[name]:<{width}} "
|
||||
f"{_system_sized(held) if systems else _core_sized(held)}")
|
||||
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ DEFAULT_INSTALL_URL="https://raw.githubusercontent.com/Abdess/retrobios/main/ins
|
||||
# curl or wget stop on a cut transfer before the hash is read: the site's
|
||||
# build rewrites this line there (scripts/sitebootstrap.py).
|
||||
MISMATCH_ADVICE="The download was most likely cut short: try again. Within minutes of an update of this project the two files can come from caches of different ages. Waiting five minutes settles that."
|
||||
DEFAULT_INSTALL_SHA256="8a5606206be6b53db269d6003d13a22487c4dde99c7121aaef608e65eb2546c3"
|
||||
DEFAULT_INSTALL_SHA256="c56f884f958819a641571ee75eeee8b14b6ecd24e2fd24229944418c104c3cb9"
|
||||
# The pin above refuses any changed byte: this cap only stops a body that
|
||||
# cannot be the installer (a sign-in portal's page) before it is hashed.
|
||||
MAX_INSTALLER_BYTES=8388608
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
{
|
||||
"dest": "roms/ports/retrobios/install.py",
|
||||
"repo_path": "install.py",
|
||||
"size": 1488572,
|
||||
"sha256": "8a5606206be6b53db269d6003d13a22487c4dde99c7121aaef608e65eb2546c3",
|
||||
"size": 1488472,
|
||||
"sha256": "c56f884f958819a641571ee75eeee8b14b6ecd24e2fd24229944418c104c3cb9",
|
||||
"executable": false
|
||||
},
|
||||
{
|
||||
@@ -71,8 +71,8 @@
|
||||
"muos": {
|
||||
"archive": {
|
||||
"dest": "ARCHIVE/RetroBIOS.muxapp",
|
||||
"size": 1542197,
|
||||
"sha256": "3634e306defdfaecd44315a693884c3f754829cf3f8df6bd4bd1866cbcdad8da"
|
||||
"size": 1542097,
|
||||
"sha256": "5c45dcaa61b1853642902536ef01c0d7069f03c8767b54ac5416c32b0de75a29"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
@@ -92,8 +92,8 @@
|
||||
{
|
||||
"name": "RetroBIOS/install.py",
|
||||
"repo_path": "install.py",
|
||||
"size": 1488572,
|
||||
"sha256": "8a5606206be6b53db269d6003d13a22487c4dde99c7121aaef608e65eb2546c3",
|
||||
"size": 1488472,
|
||||
"sha256": "c56f884f958819a641571ee75eeee8b14b6ecd24e2fd24229944418c104c3cb9",
|
||||
"executable": false
|
||||
},
|
||||
{
|
||||
@@ -166,8 +166,8 @@
|
||||
{
|
||||
"dest": ".config/modules/retrobios/install.py",
|
||||
"repo_path": "install.py",
|
||||
"size": 1488572,
|
||||
"sha256": "8a5606206be6b53db269d6003d13a22487c4dde99c7121aaef608e65eb2546c3",
|
||||
"size": 1488472,
|
||||
"sha256": "c56f884f958819a641571ee75eeee8b14b6ecd24e2fd24229944418c104c3cb9",
|
||||
"executable": false
|
||||
},
|
||||
{
|
||||
|
||||
@@ -19,6 +19,7 @@ from installer.choices import (
|
||||
_requested_narrowing,
|
||||
_standalone_builds,
|
||||
available_choices,
|
||||
core_files,
|
||||
emulator_names,
|
||||
records_selection,
|
||||
)
|
||||
@@ -54,7 +55,6 @@ from installer.lists import ListFailure, fetch_manifest, fetch_targets, load_tar
|
||||
from installer.manifest import GAME_DATA
|
||||
from installer.narrowing import (
|
||||
_chosen,
|
||||
_filter_by_target,
|
||||
board_target,
|
||||
designated_cores,
|
||||
find_by_hash,
|
||||
@@ -117,11 +117,7 @@ def _print_choices(
|
||||
labels = {name: _system_label(name, manifest) if systems else name for name in names}
|
||||
width = min(max(len(label) for label in labels.values()), 40)
|
||||
for name in names:
|
||||
held = (
|
||||
[f for f in files if _chosen(f, {name})]
|
||||
if systems
|
||||
else _filter_by_target([f for f in files if f.get("cores") is not None], [name])
|
||||
)
|
||||
held = [f for f in files if _chosen(f, {name})] if systems else core_files(files, name)
|
||||
print(f" {labels[name]:<{width}} "
|
||||
f"{_system_sized(held) if systems else _core_sized(held)}")
|
||||
|
||||
|
||||
Reference in new issue
Block a user