Metadata::locate finds the segment and in-file offset for a session time
(none inside gaps or empty tails), Metadata::covering lists the segment
pieces in a range for export, and Store::metadata loads one session with
resolved paths. Shared groundwork for playback and clip export.
Detect games with native process exit watchers, own OBS on a background worker, and persist settings and recoverable session timelines. Place segments by split frame counts, recover capture with honest gaps, and finalise on game exit or explicit Quit.
Keep the current recording alive after GPUI closes its last window, then exit when the game ends. Add an end-to-end rig covering recording, recovery, exact packet-count offsets, disk library reload and clean Quit.