[feat] common dir: local cfg

This commit is contained in:
Purp1e
2025-03-23 22:53:09 +08:00
parent 222b671289
commit 88e55fa8ef
2 changed files with 7 additions and 3 deletions

View File

@@ -78,9 +78,13 @@ const CommonDir = () => {
</RoundedButton>
<RoundedButton
onClick={async () => {
const user = steam.currentUser()
if (!user) {
addToast({ title: "请先选择用户", color: "danger" })
return
}
await invoke("open_path", {
// TODO 导航到 steamid32/730/local/cfg
path: path.resolve(steam.state.steamDir, "userdata"),
path: path.resolve(steam.state.steamDir, "userdata", user.steam_id32.toString(), "730", "local", "cfg"),
})
addToast({ title: "个人CFG" })
}}