Method RefreshAndReload
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
RefreshAndReload()
Live refresh used by the mod browser after subscribing/unsubscribing to Workshop mods and after the user trusts a blocked mod. Re-runs the boot pipeline in boot order — discover, order, compile (only mods that have not been compiled yet), run entry points (once per mod per session), re-merge content, recompile the story if a mod contributes knots — and then reloads the UI via GrindFest.ModManager._uiModDirty (Runner.Reload() happens safely on the next frame, never while JS code is still on the call stack).
Two things deliberately stay behind a restart, and are reported as such: a compiled assembly cannot be unloaded (a removed mod gets its OnUnload() and its session state is dropped, but code it scheduled elsewhere keeps running until the next boot), and the world is not regenerated here — content definitions apply to future spawns, while the ink/prefab watchers own world regeneration.
public Task RefreshAndReload()