mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-05-27 00:55:16 -07:00
feat(launcher): add mpv.profile config option for managed launches (#80)
This commit is contained in:
@@ -254,6 +254,13 @@ export function applyIntegrationConfig(context: ResolveContext): void {
|
||||
);
|
||||
}
|
||||
|
||||
const profile = asString(src.mpv.profile);
|
||||
if (profile !== undefined) {
|
||||
resolved.mpv.profile = profile.trim();
|
||||
} else if (src.mpv.profile !== undefined) {
|
||||
warn('mpv.profile', src.mpv.profile, resolved.mpv.profile, 'Expected string.');
|
||||
}
|
||||
|
||||
const socketPath = asString(src.mpv.socketPath);
|
||||
if (socketPath !== undefined && socketPath.trim().length > 0) {
|
||||
resolved.mpv.socketPath = socketPath.trim();
|
||||
|
||||
Reference in New Issue
Block a user