fix(plugin): autostart MangoHud logging on record, write config on start

This commit is contained in:
2026-06-28 18:56:43 +08:00
parent 677adc5ad0
commit 7ab7af468a
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -14,6 +14,7 @@ import { useSettings, useSession } from "./lib/store"
import {
readAndParseMangohudLog,
clearMangohudLog,
writeMangohudConfig,
getHardwareInfo,
getOsVersion,
getProtonVersion,
@@ -69,6 +70,8 @@ function Content() {
// ── Handle start recording ────────────────────────────────────
async function handleStart() {
// Write MangoHud config with autostart_log so logging begins immediately
await writeMangohudConfig()
// Clear any previous log file
await clearMangohudLog()
startRecording()