dev-prepare #2
@@ -4,7 +4,6 @@ import { TakeOff } from "@icon-park/react"
|
|||||||
import { invoke } from "@tauri-apps/api/core"
|
import { invoke } from "@tauri-apps/api/core"
|
||||||
import { Card, CardBody, CardHeader, CardIcon } from "../window/Card"
|
import { Card, CardBody, CardHeader, CardIcon } from "../window/Card"
|
||||||
import { addToast, Button } from "@heroui/react"
|
import { addToast, Button } from "@heroui/react"
|
||||||
import { title } from "process"
|
|
||||||
|
|
||||||
const FastLaunch = () => {
|
const FastLaunch = () => {
|
||||||
const steam = useSteamStore()
|
const steam = useSteamStore()
|
||||||
@@ -21,8 +20,8 @@ const FastLaunch = () => {
|
|||||||
<div className="flex gap-2">
|
<div className="flex gap-2">
|
||||||
<Button
|
<Button
|
||||||
size="sm"
|
size="sm"
|
||||||
onPress={async () => {
|
onPress={() => {
|
||||||
invoke("launch_game", {
|
void invoke("launch_game", {
|
||||||
steamPath: `${steam.state.steamDir}/steam.exe`,
|
steamPath: `${steam.state.steamDir}/steam.exe`,
|
||||||
launchOption: tool.state.launchOptions[tool.state.launchIndex] || "",
|
launchOption: tool.state.launchOptions[tool.state.launchIndex] || "",
|
||||||
server: "perfectworld",
|
server: "perfectworld",
|
||||||
@@ -35,8 +34,8 @@ const FastLaunch = () => {
|
|||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
size="sm"
|
size="sm"
|
||||||
onPress={async () => {
|
onPress={() => {
|
||||||
invoke("launch_game", {
|
void invoke("launch_game", {
|
||||||
steamPath: `${steam.state.steamDir}/steam.exe`,
|
steamPath: `${steam.state.steamDir}/steam.exe`,
|
||||||
launchOption: tool.state.launchOptions[tool.state.launchIndex] || "",
|
launchOption: tool.state.launchOptions[tool.state.launchIndex] || "",
|
||||||
server: "worldwide",
|
server: "worldwide",
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export const useSteamStore = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const cs2BaseDir = () => {
|
const cs2BaseDir = () => {
|
||||||
return path.normalize(steamStore.state.cs2Dir.replaceAll("\\", "/") + "/../../..")
|
return path.normalize(`${steamStore.state.cs2Dir.replaceAll("\\", "/") }/../../..`)
|
||||||
}
|
}
|
||||||
|
|
||||||
const setDir = (dir: string) => {
|
const setDir = (dir: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user