import { parseMpvLaunchMode } from '../../src/shared/mpv-launch-mode.js'; import type { LauncherMpvConfig } from '../types.js'; export function parseLauncherMpvConfig(root: Record): LauncherMpvConfig { const mpvRaw = root.mpv; if (!mpvRaw || typeof mpvRaw !== 'object') return {}; const mpv = mpvRaw as Record; return { launchMode: parseMpvLaunchMode(mpv.launchMode), }; }