mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-25 19:08:51 -06:00
refactor: move leaf modules into packages
core: hashing, artifacts, ziptools, deterministic_zip, romdir, sect233r1, crypto_verify, paths (REPO_ROOT). model: safeparse (needs yaml), dumpcatalog, largefiles, alternatives. resolve: nativemode, validation, launchers, slot, truth, gamedata, and exporter/baseline.py and exporter/candidates.py as resolve/reconcile.py and resolve/categories.py, which truth and gamedata read. Every importer follows. Modules one level deeper read the repository root from core.paths instead of __file__.
This commit is contained in:
1 parent
23d8a770f1
commit
c784aef883
167 files changed
+412
-434
No files matched your search
+7
-7
@@ -38,8 +38,8 @@ from typing import TYPE_CHECKING, TypedDict
|
||||
import slots
|
||||
|
||||
sys.path.insert(0, os.path.dirname(__file__))
|
||||
from hashing import parse_md5_list
|
||||
from alternatives import (
|
||||
from core.hashing import parse_md5_list
|
||||
from model.alternatives import (
|
||||
core_file_spares,
|
||||
set_fields,
|
||||
set_keys,
|
||||
@@ -102,17 +102,17 @@ from common import (
|
||||
system_dir_path,
|
||||
)
|
||||
|
||||
from exporter.candidates import BIOS, EntryCategories
|
||||
from launchers import LauncherLayer, declared_destinations, held_record, launcher_unproven
|
||||
from resolve.categories import BIOS, EntryCategories
|
||||
from resolve.launchers import LauncherLayer, declared_destinations, held_record, launcher_unproven
|
||||
from cross_reference import launcher_reads_not_held
|
||||
from nativemode import (
|
||||
from resolve.nativemode import (
|
||||
SIZE_AND_ANY_HASH,
|
||||
digest_algorithm,
|
||||
hash_mismatch_excludes_file,
|
||||
normalize as normalize_mode,
|
||||
reads_file_contents,
|
||||
)
|
||||
from validation import (
|
||||
from resolve.validation import (
|
||||
baseline_verdict,
|
||||
case_folded_slots,
|
||||
declaration_settles,
|
||||
@@ -1626,7 +1626,7 @@ def _cut_game_data(
|
||||
system_filter: list[str] | None,
|
||||
) -> tuple[dict, dict, list[str]]:
|
||||
"""The config and profiles of a --no-game-data pack, and what it leaves out."""
|
||||
from gamedata import without_game_data
|
||||
from resolve.gamedata import without_game_data
|
||||
|
||||
if emu_profiles is None:
|
||||
emu_profiles = load_emulator_profiles(emulators_dir)
|
||||
|
||||
Reference in new issue
Block a user