From 70b719489b3d76b5af32d236b8be32eaa44dd312 Mon Sep 17 00:00:00 2001 From: AzenKain Date: Tue, 10 Feb 2026 21:45:45 +0700 Subject: [PATCH] UPDATE: Handler for 4.0 --- frontend/src/pages/launcher/index.tsx | 18 ++++-------------- frontend/src/styles/index.css | 1 + 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/frontend/src/pages/launcher/index.tsx b/frontend/src/pages/launcher/index.tsx index da10bf9..78c35c1 100644 --- a/frontend/src/pages/launcher/index.tsx +++ b/frontend/src/pages/launcher/index.tsx @@ -75,13 +75,7 @@ export default function LauncherPage() { btnClass: "btn-secondary" }, { - tooltip: "Amazing's SRTools (Original UI)", - href: "https://srtools.pages.dev/", - img: "https://icons.duckduckgo.com/ip3/srtools.pages.dev.ico", - btnClass: "btn-primary" - }, - { - tooltip: "Amazing's SRTools (Modern UI)", + tooltip: "Amazing's SRTools", href: "https://srtools.neonteam.dev/", img: "https://icons.duckduckgo.com/ip3/srtools.neonteam.dev.ico", btnClass: "btn-secondary" @@ -196,6 +190,7 @@ export default function LauncherPage() { setProxyRunning(true) } await sleep(500) + if (!serverRunning) { const [resultServer, error] = await FSService.StartWithConsole(serverPath) if (!resultServer) { @@ -205,12 +200,7 @@ export default function LauncherPage() { setServerRunning(true) } await sleep(1000) - const gameFolder = await FSService.GetDir(gamePath) - const fileNeedRemove = await FSService.Join(gameFolder, "StarRail_Data", "Plugins", "x86_64", "AccountPlatNative.dll") - const fileExists = await FSService.FileExists(fileNeedRemove) - if (fileExists) { - await FSService.RemoveFile(fileNeedRemove) - } + if (gamePath.endsWith("launcher.exe")) { const [resultGame, error] = await FSService.StartWithConsole(gamePath) if (!resultGame) { @@ -415,7 +405,7 @@ export default function LauncherPage() {