[feat] common dir: local cfg
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
},
|
||||
"productName": "CS工具箱",
|
||||
"mainBinaryName": "cstb",
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.4",
|
||||
"identifier": "upup.cool",
|
||||
"plugins": {
|
||||
"deep-link": {
|
||||
|
||||
@@ -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" })
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user