pub fn preload_emote_key(project_dir: &Path) -> Option<u32>Expand description
Resolve the project Emote DWORD before scene execution starts.
Priority:
key.toml: emote_key, validated against an encrypted PSB when one exists;- fallback user-cache key from an earlier run where
key.tomlwas not writable; - one Eluna DWORD bruteforce against the smallest encrypted
dat/*.psbcandidate.
A newly discovered key is written back to key.toml. Only if that write fails
is the fallback user cache used. Failures are logged and do not abort engine
bootstrap; later Emote loading can report the missing/invalid key precisely.