FIX: change cmd dir to game cmd dir

This commit is contained in:
2026-04-07 21:30:32 +07:00
parent 45d345d7cb
commit 2fafe7813d
2 changed files with 4 additions and 1 deletions

View File

@@ -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()

View File

@@ -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