UPDATE: handler before start game
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user