mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-24 10:37:54 -06:00
refactor: move ten command helpers into packages
This commit is contained in:
1 parent
6d21a98342
commit
19681a3735
22 files changed
+218
-191
No files matched your search
@@ -103,3 +103,44 @@ def build_report(profiles: dict, db: dict) -> dict:
|
||||
"vocabulary": dict(vocabulary.most_common()),
|
||||
"conflicts": conflicts,
|
||||
}
|
||||
|
||||
|
||||
LIMITS = """Limits, read before trusting any line below.
|
||||
|
||||
TOSEC's country field is the country of ORIGIN, not the regional variant
|
||||
(TOSEC Naming Convention v4, p.12). A Korean MSX ROM published by Microsoft
|
||||
US is tagged (US). TOSEC names are therefore NOT read here.
|
||||
|
||||
Redump DATs carry no region at all: it exists in the redump.org database but
|
||||
is never exported, so a Redump entry contributes nothing.
|
||||
|
||||
Only No-Intro filename tokens are usable, and only for the fraction of repo
|
||||
files that carry one. Everything else is silent, not clean.
|
||||
|
||||
The emulator source decides. A disagreement is a prompt to reread the code,
|
||||
never a correction to apply on its own.
|
||||
"""
|
||||
|
||||
|
||||
def print_report(report: dict) -> None:
|
||||
print(LIMITS)
|
||||
print(
|
||||
f"repo files: {report['repo_files']} "
|
||||
f"with a usable No-Intro region token: {report['catalog_files']}"
|
||||
)
|
||||
print(
|
||||
f"declared region: values -> agree {report['agree']}, "
|
||||
f"disagree {report['disagree']}, no catalogue entry {report['unchecked']}"
|
||||
)
|
||||
if report["vocabulary"]:
|
||||
print("\ncatalogue vocabulary present in this collection:")
|
||||
for slug, count in report["vocabulary"].items():
|
||||
print(f" {count:5d} {slug}")
|
||||
if not report["conflicts"]:
|
||||
print("\nNo disagreement.")
|
||||
return
|
||||
print("\nDISAGREEMENTS (reread the emulator source, do not apply blindly):\n")
|
||||
for c in report["conflicts"]:
|
||||
print(f" {c['emulator']}: {c['file']}")
|
||||
print(f" profile: {c['profile']}")
|
||||
print(f" catalogue: {c['catalog']} ({c['dat_name']})")
|
||||
Reference in new issue
Block a user