Add a developer mode to show some debug stuff

This commit is contained in:
Lncvrt committed 2026-05-06 15:10:15 -07:00
1 parent 403c1dee4e
commit 1d024296c2
8 files changed
+93 -20

No files matched your search

+5 -1
View File
@@ -96,6 +96,7 @@ export default function RootLayout ({
useState<string>('wine %path%')
const [theme, setTheme] = useState<string>('dark')
const [customDataLocation, setCustomDataLocation] = useState<string>('')
const [developerMode, setDeveloperMode] = useState<boolean>(false)
const [versionsList, setVersionsList] = useState<Record<string, number>>({})
const [modsList, setModsList] = useState<
@@ -645,7 +646,8 @@ export default function RootLayout ({
linuxUseWine: false,
linuxWineCommand: 'wine %path%',
theme: 'dark',
customDataLocation: ''
customDataLocation: '',
developerMode: false
}
})
const versionsLocal = await load('versions.json', {
@@ -802,6 +804,7 @@ export default function RootLayout ({
watchSettings<string>('customDataLocation', v =>
setCustomDataLocation(v ?? '')
)
watchSettings<boolean>('developerMode', v => setDeveloperMode(v ?? false))
watchVersions<Record<string, number>>('list', v => setVersionsList(v ?? {}))
watchVersions<Record<string, Record<string, number>>>('mods', v =>
@@ -871,6 +874,7 @@ export default function RootLayout ({
linuxWineCommand,
theme,
customDataLocation,
developerMode,
versionsList,
modsList,
movingData,