Expand description
Archive structure detection.
Given an extracted archive and a game-specific InstallProbe, decide
which InstallMethod describes this mod. The pipeline is intentionally
ordered so game plugins can claim layouts authoritatively before the
generic probes kick in.
Detection order:
- Normalize: if the extracted dir contains exactly one wrapper
directory and no files, recurse into that subdir and record the
strip_prefixon the resulting plan. - Game plugin:
probe.analyze(dir)— plugin-specific rules (e.g.REDmodfor Cyberpunk). - FOMOD: presence of
fomod/ModuleConfig.xml. - BAIN: numbered option subdirs (
00 Core,01 Option, …). - DLL overlay: top-level
.dllwith no nested asset dirs. - Bare extract:
probe.recognizes_bare(dir). - Unknown: fall through.
On Unknown, the caller is expected to dump a dossier (see
super::dossier) and let the skill path extend this enum.
Functions§
- analyze
- Classify
extracted_dirand return anInstallPlanwith the detected method andsource_archive_hashpre-populated.