mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-12 14:33:23 -05:00
feat: show core requirements in coverage tables
This commit is contained in:
1 parent
c860dd7666
commit
3e7805f838
3 files changed
+47
-36
No files matched your search
@@ -354,8 +354,8 @@ def generate_readme(db: dict, platforms_dir: str) -> str:
|
||||
"",
|
||||
"## Coverage",
|
||||
"",
|
||||
"| Platform | Files in pack | Still missing | Verified by |",
|
||||
"|----------|--------------:|--------------:|-------------|",
|
||||
"| Platform | Files in pack | Declared by platform | Required by its emulators | Still missing | Verified by |",
|
||||
"|----------|--------------:|---------------------:|--------------------------:|--------------:|-------------|",
|
||||
]
|
||||
)
|
||||
|
||||
@@ -370,15 +370,21 @@ def generate_readme(db: dict, platforms_dir: str) -> str:
|
||||
files = manifest_totals(name)[0] or cov["pack_files"]
|
||||
checked = mode_labels.get(cov["mode"], cov["mode"])
|
||||
lines.append(
|
||||
f"| {display} | {files:,} | {cov['total_missing']} | {checked} |"
|
||||
f"| {display} | {files:,} | {cov['present']:,} |"
|
||||
f" {cov['core_present']:,} | {cov['total_missing']} | {checked} |"
|
||||
)
|
||||
|
||||
lines.extend(
|
||||
[
|
||||
"",
|
||||
"A pack carries what the platform declares plus what its emulators"
|
||||
" load without the platform listing it, so it holds more files than"
|
||||
" the platform's own list.",
|
||||
"Declared by platform is the platform's own BIOS list. Required by"
|
||||
" its emulators counts what the cores it ships actually load,"
|
||||
" read from their source code, that the list never mentions: it is"
|
||||
" routinely several times the list itself. Both ship in the pack."
|
||||
" Files in pack counts what the ZIP actually holds, each file once"
|
||||
" at its destination, so it does not add up from the two: a file"
|
||||
" several systems need is counted once, and the data directories"
|
||||
" some emulators need are counted too.",
|
||||
"Still missing counts files an emulator needs that are not in the"
|
||||
" collection yet; verified by is the check the platform itself runs"
|
||||
" on them.",
|
||||
|
||||
@@ -1734,8 +1734,8 @@ def generate_gap_analysis(
|
||||
lines.extend([
|
||||
"## What Each Pack Contains",
|
||||
"",
|
||||
"| Platform | Files in pack | Declared by platform | Still missing | Verified by |",
|
||||
"|----------|--------------:|---------------------:|--------------:|-------------|",
|
||||
"| Platform | Files in pack | Declared by platform | Required by its emulators | Still missing | Verified by |",
|
||||
"|----------|--------------:|---------------------:|--------------------------:|--------------:|-------------|",
|
||||
])
|
||||
|
||||
mode_labels = {
|
||||
@@ -1757,17 +1757,22 @@ def generate_gap_analysis(
|
||||
f"| [{display}](platforms/{pname}.md) "
|
||||
f"| {files:,} "
|
||||
f"| {cov['present']:,} "
|
||||
f"| {cov['core_present']:,} "
|
||||
f"| {missing_str} "
|
||||
f"| {mode_labels.get(cov['mode'], cov['mode'])} |"
|
||||
)
|
||||
lines.extend([
|
||||
"",
|
||||
"A pack carries the platform's own file list plus every file its "
|
||||
"emulators load without that list mentioning them, which is why it "
|
||||
"ships several times what the platform declares. Still missing counts "
|
||||
"files an emulator needs that are not in the collection yet, named in "
|
||||
"the sections below. Verified by is the check the platform runs at "
|
||||
"runtime, replicated here "
|
||||
"Declared by platform is the platform's own BIOS list. Required by its "
|
||||
"emulators counts what the cores it ships actually load, read from "
|
||||
"their source code, that the list never mentions: it is routinely "
|
||||
"several times the list itself. Both ship in the pack. Files in pack "
|
||||
"counts what the ZIP holds, each file once at its destination, so it "
|
||||
"does not add up from the two: a file several systems need is counted "
|
||||
"once, and the data directories some emulators need are counted too. "
|
||||
"Still missing counts files an emulator needs that are not in the "
|
||||
"collection yet, named in the sections below. Verified by is the check "
|
||||
"the platform runs at runtime, replicated here "
|
||||
"([how each mode works](wiki/verification-modes.md)).",
|
||||
"",
|
||||
"## Corroboration Against Emulator Source",
|
||||
|
||||
Reference in new issue
Block a user