UPDATE: handler before start game

This commit is contained in:
2025-11-05 20:44:41 +07:00
parent 892ea44c17
commit 52134c2200
6 changed files with 185 additions and 197 deletions

View File

@@ -14,7 +14,6 @@ import UpdateModal from '@/components/updateModal';
import { BackgroundSelector } from '@/components/backgroudModal';
export default function LauncherPage() {
const {
gamePath,
@@ -207,7 +206,10 @@ export default function LauncherPage() {
}
setServerRunning(true)
}
await sleep(2000)
await sleep(1000)
const gameFolder = await FSService.GetDir(gamePath)
const fileNeedRemove = await FSService.Join(gameFolder, "StarRail_Data", "Plugins", "x86_64", "AccountPlatNative.dll")
await FSService.RemoveFile(fileNeedRemove)
if (gamePath.endsWith("launcher.exe")) {
const resultGame = await FSService.StartWithConsole(gamePath)
if (!resultGame) {