fix(plugin): autostart MangoHud logging on record, write config on start
This commit is contained in:
@@ -192,7 +192,7 @@ class Plugin:
|
||||
# DeckyVault MangoHud logging config
|
||||
output_folder=/tmp
|
||||
output_file=deckyvault-mangohud.log
|
||||
log_duration=0
|
||||
autostart_log=0
|
||||
fps
|
||||
frame_timing
|
||||
cpu_power
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user