Files
cstb-next/src/store/index.ts
Purp1e c2c1a4c368 [feat] global watch dir and set better check logic
todo: first time check failed should let user manually click
2025-03-21 02:42:49 +08:00

15 lines
473 B
TypeScript

import { appConfigDir } from "@tauri-apps/api/path"
import { setStoreCollectionPath } from "@tauri-store/valtio"
import { appStore } from "./app"
import { steamStore } from "./steam"
import { toolStore } from "./tool"
import path from "path"
export async function init() {
await appStore.start()
await toolStore.start()
await steamStore.start()
const appConfigDirPath = await appConfigDir()
await setStoreCollectionPath(path.resolve(appConfigDirPath, "cstb"))
}