mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 11:13:46 +08:00
fix 动态检测
This commit is contained in:
parent
3218d95c26
commit
ed12eaf875
@ -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) {
|
for (var fileName in List.from(scInstallPaths)) {
|
||||||
await checkAndAddPath(
|
if (fileName.toString().endsWith(v)) {
|
||||||
fileName.toString().replaceAll("\\$v", ""), true);
|
for (var nv in withVersion) {
|
||||||
|
final nextName =
|
||||||
|
"${fileName.toString().replaceAll("\\$v", "")}\\$nv";
|
||||||
|
await checkAndAddPath(nextName, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user