fix 动态检测

This commit is contained in:
xkeyC 2023-11-22 00:28:14 +08:00
parent 3218d95c26
commit ed12eaf875

View File

@ -97,10 +97,15 @@ class SCLoggerHelper {
if (scInstallPaths.isNotEmpty) { if (scInstallPaths.isNotEmpty) {
// //
for (var fileName in List.from(scInstallPaths)) {
for (var v in withVersion) { for (var v in withVersion) {
await checkAndAddPath( for (var fileName in List.from(scInstallPaths)) {
fileName.toString().replaceAll("\\$v", ""), true); if (fileName.toString().endsWith(v)) {
for (var nv in withVersion) {
final nextName =
"${fileName.toString().replaceAll("\\$v", "")}\\$nv";
await checkAndAddPath(nextName, true);
}
}
} }
} }
} }