mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Rescan re-ran the boot indexer on two subtrees, which only adds files, and skipped its whole run when the index's built latch was 0. The SavedVariables unload pass clears that latch whenever it writes a new SV file, so on that /reload no new folder, metadata change or display-array rebuild happened. Call FUN_VFS_INDEX_CLEAR (0x00646FC0) instead - the clear the engine itself uses after its own file writes - and drop the latch gate. The next lookup rebuilds the index from disk, so deleted files drop out too. AddOns::Toc::FindValue now matches lines the way the TOC parser does: skip a UTF-8 BOM, break lines at CR or LF, and accept any spaces after "##" before the key, which must be followed directly by ':'. Callers pass the bare key. Also correct the notes that said a first-ever SavedVariables file stays unreadable until restart; the engine's unload pass already handles it.