Files
cstb-next/src/store/index.ts

15 lines
473 B
TypeScript
Raw Normal View History

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"
2025-03-13 00:25:09 +08:00
export async function init() {
await appStore.start()
await toolStore.start()
await steamStore.start()
const appConfigDirPath = await appConfigDir()
await setStoreCollectionPath(path.resolve(appConfigDirPath, "cstb"))
2025-03-12 22:20:06 +08:00
}