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
|
# DeckyVault MangoHud logging config
|
||||||
output_folder=/tmp
|
output_folder=/tmp
|
||||||
output_file=deckyvault-mangohud.log
|
output_file=deckyvault-mangohud.log
|
||||||
log_duration=0
|
autostart_log=0
|
||||||
fps
|
fps
|
||||||
frame_timing
|
frame_timing
|
||||||
cpu_power
|
cpu_power
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import { useSettings, useSession } from "./lib/store"
|
|||||||
import {
|
import {
|
||||||
readAndParseMangohudLog,
|
readAndParseMangohudLog,
|
||||||
clearMangohudLog,
|
clearMangohudLog,
|
||||||
|
writeMangohudConfig,
|
||||||
getHardwareInfo,
|
getHardwareInfo,
|
||||||
getOsVersion,
|
getOsVersion,
|
||||||
getProtonVersion,
|
getProtonVersion,
|
||||||
@@ -69,6 +70,8 @@ function Content() {
|
|||||||
|
|
||||||
// ── Handle start recording ────────────────────────────────────
|
// ── Handle start recording ────────────────────────────────────
|
||||||
async function handleStart() {
|
async function handleStart() {
|
||||||
|
// Write MangoHud config with autostart_log so logging begins immediately
|
||||||
|
await writeMangohudConfig()
|
||||||
// Clear any previous log file
|
// Clear any previous log file
|
||||||
await clearMangohudLog()
|
await clearMangohudLog()
|
||||||
startRecording()
|
startRecording()
|
||||||
|
|||||||
Reference in New Issue
Block a user