Skip to main content

Module config

Module config 

Source
Expand description

Fallback retrieval and warning filtering (config.py:21-40). A binding shares one warning state across call sites, and supplies its warning emitter. Retrieval does not validate version syntax; parsing happens later.

Structs§

FallbackWarnings
The once filter’s keys: one per distinct fallback message, across call sites.
FilteredWarnings
One once registry shared across files and call sites. The callback runs after releasing the registry lock, so reentrant warning handlers are safe.
RuntimeConfig
Binding settings captured before entering a load. Existing files retain their parsed versions and tree flags when a subsequent load updates these.
UnityVersionFallbackWarning
UnityPy’s warning category and message, borrowed without allocating.

Enums§

UnityVersionFallbackError
A missing string fallback or a refusal to retain the warning’s once key.

Traits§

DecryptKeySource
A binding resolves its mutable global only when an encrypted bundle needs it.
FallbackWarningSink
Warning delivery for version resolution. A Python binding installs its warning emitter here; native callers can collect or display the same warning.

Functions§

get_fallback_version
Return any configured string and emit its warning once. None represents any non-string config value, as UnityPy’s isinstance(value, str) does.