From a94f49eca2b09544e295188589596544b28dac89 Mon Sep 17 00:00:00 2001 From: xkeyC <3334969096@qq.com> Date: Sun, 16 Jun 2024 09:22:07 +0800 Subject: [PATCH] fix https://github.com/StarCitizenToolBox/app/issues/33 : getRSILauncherPath --- lib/common/helper/system_helper.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/common/helper/system_helper.dart b/lib/common/helper/system_helper.dart index 152fc4e..6943e36 100644 --- a/lib/common/helper/system_helper.dart +++ b/lib/common/helper/system_helper.dart @@ -87,6 +87,9 @@ class SystemHelper { final path = confBox.get("custom_launcher_path"); if (path != null && path != "") { if (await File(path).exists()) { + if (skipEXE) { + return "${path.toString().replaceAll("\\RSI Launcher.exe", "")}\\"; + } return path; } }