From 2fafe7813d45befe85b8d505668cfa37f44b75f7 Mon Sep 17 00:00:00 2001 From: AzenKain Date: Tue, 7 Apr 2026 21:30:32 +0700 Subject: [PATCH] FIX: change cmd dir to game cmd dir --- internal/fs-service/fs.go | 3 +++ pkg/constant/constant.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/fs-service/fs.go b/internal/fs-service/fs.go index 3ba2d4e..c594a02 100644 --- a/internal/fs-service/fs.go +++ b/internal/fs-service/fs.go @@ -76,7 +76,10 @@ func (f *FSService) RemoveFile(path string) error { } func (f *FSService) StartApp(path string) (bool, string) { + dir := filepath.Dir(path) cmd := exec.Command(path) + cmd.Dir = dir + err := cmd.Start() if err != nil { return false, err.Error() diff --git a/pkg/constant/constant.go b/pkg/constant/constant.go index 69ae2e1..2487988 100644 --- a/pkg/constant/constant.go +++ b/pkg/constant/constant.go @@ -10,7 +10,7 @@ const ProxyFile = "firefly-go-proxy.exe" const LauncherFile = "firefly-launcher.exe" const TempUrl = "./temp" -const CurrentLauncherVersion = "2.5.0" +const CurrentLauncherVersion = "2.5.1" type ToolFile string