fix(plugin): add control socket, autostart_log=1, timeout-safe mangohudctl

This commit is contained in:
2026-06-28 20:33:12 +08:00
parent aa52e0feb6
commit 37cc24ff60
2 changed files with 9 additions and 8 deletions
+3
View File
@@ -14,6 +14,7 @@ import {
readAndParseMangohudLog,
clearMangohudLog,
writeMangohudConfig,
stopMangohudLogging,
getHardwareInfo,
getOsVersion,
getProtonVersion,
@@ -80,6 +81,8 @@ function Content() {
// ── Handle stop recording: parse log + read system info ────────
async function handleStop() {
try {
// Try to stop MangoHud logging (best-effort, may fail if game already closed)
await stopMangohudLogging()
stopRecording()
// Parse the MangoHud log