Skip to main content

Module scanner

Module scanner 

Source
Expand description

S2S reference scanning and classification.

Scans inline scripts and standalone .s2s files for commands that reference other files (dialogue, msgbox, button, addscript, extendscript, def_extend, def_override), then classifies each referenced file for downstream conversion.

Structs§

S2sReference
A single reference from one file to another.

Enums§

S2sClass
Classify a .s2s file based on how it’s referenced.
S2sRefType
How another file references/loads a given .s2s file.

Functions§

build_reference_map
Build a reference map: for each .s2s file, what commands reference it and how.
classify_s2s
resolve_missing_script_refs
After building the reference map, resolve references whose target files have a different extension than expected (e.g., referenced as .s2s in msgbox/button calls but stored as .txt on disk).
scan_references
Scan script content for commands that load other .s2s files, and record the references found.

Type Aliases§

S2sRefMap
Map from .s2s file path → how it’s referenced (file-level).
S2sSectionMap
Section-level reference map: file path → section name → ref types for that section. Only populated for files whose references include a section name.