mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-26 03:18:52 -06:00
refactor: split the leaf modules libraries use
model.region holds the region vocabulary, resolve.regions the selection that needs the cores a platform runs. The libraries behind identity.py, retired_files.py and torrentzip.py move to resolve.identity, model.retired and core.torrentzip, with their long docstrings; the commands stay where they are run from. The source_ref parts that cite a config or feature file move from scraper.shell_launchers to resolve.launcherrefs, so resolve no longer imports the scraper package.
This commit is contained in:
1 parent
83cfa6fd0f
commit
c764d9abf1
56 files changed
+839
-804
No files matched your search
@@ -31,7 +31,7 @@ import os
|
||||
from packextras import platform_region_groups
|
||||
from packpaths import _flat
|
||||
from resolve.nativemode import reads_file_contents
|
||||
import region as region_mod
|
||||
from resolve import regions as resolve_regions
|
||||
import slots
|
||||
from packresolve import resolve_declaration, resolve_file
|
||||
from resolve.categories import BIOS, EntryCategories
|
||||
@@ -776,7 +776,7 @@ def _region_drops(
|
||||
region_drops: set[str] = set()
|
||||
if not opts.regions:
|
||||
return region_drops
|
||||
region_index = region_mod.platform_region_index(
|
||||
region_index = resolve_regions.platform_region_index(
|
||||
config, emu_profiles, target_cores
|
||||
)
|
||||
held: set[str] = set()
|
||||
@@ -800,7 +800,7 @@ def _region_drops(
|
||||
target_cores=target_cores, source=opts.source,
|
||||
) if db is not None else None,
|
||||
)
|
||||
return region_mod.resolve_region_drops(
|
||||
return resolve_regions.resolve_region_drops(
|
||||
region_groups, region_index, opts.regions, held
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user