mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-29 21:08:53 -06:00
refactor: read a platform's check mode one way
nativemode.platform_mode(config) replaces the inline
config.get("verification_mode", "existence") of the builder, the
manifest, slots, integrity, extras, gaps, coverage and review. A value
outside the schema enum now falls back to the default everywhere, as
coverage already did. Every platform declares a valid mode.
This commit is contained in:
1 parent
200f785f67
commit
8f153e2b89
9 files changed
+25
-17
No files matched your search
@@ -16,7 +16,7 @@ from resolve.directories import expand_directory_entries
|
||||
from resolve.launchers import LauncherLayer, declared_destinations, held_record
|
||||
from resolve.layout import runs_standalone, system_dir_path
|
||||
from resolve.localfile import resolve_local_file
|
||||
from resolve.nativemode import hash_mismatch_excludes_file
|
||||
from resolve.nativemode import hash_mismatch_excludes_file, platform_mode
|
||||
from resolve.ownership import foreign_tree, owner_tokens
|
||||
from resolve.standalone import platform_layouts, standalone_set as platform_standalone_set
|
||||
from resolve.validation import (
|
||||
@@ -493,7 +493,7 @@ def find_undeclared_files(
|
||||
scan = _GapScan(
|
||||
config, db, data_names, include_all, declared_names, folded_slots,
|
||||
declared_contents,
|
||||
hash_mismatch_excludes_file(config.get("verification_mode")),
|
||||
hash_mismatch_excludes_file(platform_mode(config)),
|
||||
launcher_layer,
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user