relaunch_self

Function relaunch_self 

Source
pub(crate) fn relaunch_self()
Expand description

Spawn a fresh copy of the current binary with the same CLI args and exit. Used by the Options panel’s “Apply & restart” button so settings that can’t be applied live (MSAA, texture format) take effect on the next boot. We rely on the caller having just called Settings::save() so the new process reads the user’s edits.