UPDATE: Handler for 4.0

This commit is contained in:
2026-02-10 21:45:45 +07:00
parent 5f1708129a
commit 70b719489b
2 changed files with 5 additions and 14 deletions

View File

@@ -75,13 +75,7 @@ export default function LauncherPage() {
btnClass: "btn-secondary" btnClass: "btn-secondary"
}, },
{ {
tooltip: "Amazing's SRTools (Original UI)", tooltip: "Amazing's SRTools",
href: "https://srtools.pages.dev/",
img: "https://icons.duckduckgo.com/ip3/srtools.pages.dev.ico",
btnClass: "btn-primary"
},
{
tooltip: "Amazing's SRTools (Modern UI)",
href: "https://srtools.neonteam.dev/", href: "https://srtools.neonteam.dev/",
img: "https://icons.duckduckgo.com/ip3/srtools.neonteam.dev.ico", img: "https://icons.duckduckgo.com/ip3/srtools.neonteam.dev.ico",
btnClass: "btn-secondary" btnClass: "btn-secondary"
@@ -196,6 +190,7 @@ export default function LauncherPage() {
setProxyRunning(true) setProxyRunning(true)
} }
await sleep(500) await sleep(500)
if (!serverRunning) { if (!serverRunning) {
const [resultServer, error] = await FSService.StartWithConsole(serverPath) const [resultServer, error] = await FSService.StartWithConsole(serverPath)
if (!resultServer) { if (!resultServer) {
@@ -205,12 +200,7 @@ export default function LauncherPage() {
setServerRunning(true) setServerRunning(true)
} }
await sleep(1000) 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")) { if (gamePath.endsWith("launcher.exe")) {
const [resultGame, error] = await FSService.StartWithConsole(gamePath) const [resultGame, error] = await FSService.StartWithConsole(gamePath)
if (!resultGame) { if (!resultGame) {
@@ -415,7 +405,7 @@ export default function LauncherPage() {
</div> </div>
<div className="w-full bg-white/20 rounded-full h-2 overflow-hidden"> <div className="w-full bg-white/20 rounded-full h-2 overflow-hidden">
<motion.div <motion.div
className="h-full bg-gradient-to-r from-cyan-400 to-blue-500 rounded-full" className="h-full bg-linear-to-r from-cyan-400 to-blue-500 rounded-full"
initial={{ width: 0 }} initial={{ width: 0 }}
animate={{ width: `${progressDownload}%` }} animate={{ width: `${progressDownload}%` }}
transition={{ type: "tween", ease: "linear", duration: 0.03 }} transition={{ type: "tween", ease: "linear", duration: 0.03 }}

View File

@@ -1,4 +1,5 @@
@import "tailwindcss"; @import "tailwindcss";
@plugin "daisyui"{ @plugin "daisyui"{
exclude: properties;
themes: dracula --default; themes: dracula --default;
} }