mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-10 21:43:23 -05:00
fix: count engine and publisher trees as game data
This commit is contained in:
1 parent
aff1c8d48e
commit
b5c1e4fc03
3 files changed
+40
-4
No files matched your search
+22
-3
@@ -1002,7 +1002,26 @@ def unique_emulator_profiles(profiles: dict[str, dict]) -> dict[str, dict]:
|
||||
}
|
||||
|
||||
|
||||
GAME_DATA_TOPS = ("RPG Maker", "ScummVM")
|
||||
# Trees that hold game and engine data rather than the system files of a
|
||||
# machine: the engine trees, and the publishers whose games an engine runs.
|
||||
GAME_DATA_TOPS = (
|
||||
"RPG Maker",
|
||||
"ScummVM",
|
||||
"Game Engines",
|
||||
"sdlpal",
|
||||
"Dinothawr",
|
||||
"3D Realms",
|
||||
"Apogee",
|
||||
"Blizzard",
|
||||
"Crack dot Com",
|
||||
"Electronic Arts",
|
||||
"Epic MegaGames",
|
||||
"Id Software",
|
||||
"Interplay",
|
||||
"Monolith",
|
||||
"Softdisk",
|
||||
"Valve",
|
||||
)
|
||||
|
||||
|
||||
def composition_tier(path: str) -> str:
|
||||
@@ -1020,8 +1039,8 @@ def compute_composition(db: dict) -> dict:
|
||||
"""File and byte counts by tree area.
|
||||
|
||||
Three buckets, each re-derivable from paths alone: arcade ROM sets
|
||||
(Arcade/), game and engine data (the RPG Maker/ and ScummVM/ trees),
|
||||
and console or computer system files (everything else).
|
||||
(Arcade/), game and engine data (the trees of GAME_DATA_TOPS), and
|
||||
console or computer system files (everything else).
|
||||
"""
|
||||
buckets = {
|
||||
"systems": {"files": 0, "size_bytes": 0},
|
||||
|
||||
@@ -428,7 +428,8 @@ def composition_sentence(db: dict) -> str:
|
||||
f"The collection holds {comp['systems']['files']:,} console and "
|
||||
f"computer system files, {comp['arcade']['files']:,} arcade ROM sets "
|
||||
f"(`Arcade/`), and {comp['game_data']['files']:,} game and engine "
|
||||
"data files (the `RPG Maker/` and `ScummVM/` trees). No pack holds "
|
||||
"data files (`Game Engines/`, `RPG Maker/`, `ScummVM/` and the game "
|
||||
"publishers' trees). No pack holds "
|
||||
"them all: each carries what its platform's emulators load."
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user