mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-08 10:19:21 -07:00
13 lines
423 B
TypeScript
13 lines
423 B
TypeScript
import { parseMpvLaunchMode } from '../../src/shared/mpv-launch-mode.js';
|
|
import type { LauncherMpvConfig } from '../types.js';
|
|
|
|
export function parseLauncherMpvConfig(root: Record<string, unknown>): LauncherMpvConfig {
|
|
const mpvRaw = root.mpv;
|
|
if (!mpvRaw || typeof mpvRaw !== 'object') return {};
|
|
const mpv = mpvRaw as Record<string, unknown>;
|
|
|
|
return {
|
|
launchMode: parseMpvLaunchMode(mpv.launchMode),
|
|
};
|
|
}
|