[chore] remove unusable files

This commit is contained in:
Purp1e
2025-03-12 22:20:06 +08:00
parent a78b63259a
commit 71858e5fec
21 changed files with 142 additions and 326 deletions

View File

@@ -1,23 +1,27 @@
import { store } from 'tauri-plugin-valtio';
import { DEFAULT_STORE_CONFIG } from '.';
import { store } from "tauri-plugin-valtio"
import { DEFAULT_STORE_CONFIG } from "."
const defaultValue = {
launchOptions: [
"-novid -high -freq 144 -fullscreen",
"-novid -high -w 1920 -h 1080 -freq 144 -sw -noborder",
"-novid -high -freq 144 -fullscreen -allow_third_party_software"
"-novid -high -freq 144 -fullscreen -allow_third_party_software",
] as string[],
launchIndex: 0,
powerPlan: 0
powerPlan: 0,
}
export const toolStore = store('tool', { ...defaultValue }, DEFAULT_STORE_CONFIG);
export const toolStore = store(
"tool",
{ ...defaultValue },
DEFAULT_STORE_CONFIG,
)
export const setLaunchOption = (option: string, index: number) => {
toolStore.state.launchOptions = [
...toolStore.state.launchOptions.slice(0, index),
option,
...toolStore.state.launchOptions.slice(index + 1)
...toolStore.state.launchOptions.slice(index + 1),
]
}