mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 12:34:45 +08:00
fix: home game location scan
This commit is contained in:
@ -87,10 +87,14 @@ class HomeUIModel extends _$HomeUIModel {
|
|||||||
}
|
}
|
||||||
final scInstallPaths = await SCLoggerHelper.getGameInstallPath(listData,
|
final scInstallPaths = await SCLoggerHelper.getGameInstallPath(listData,
|
||||||
withVersion: ["LIVE", "PTU", "EPTU"], checkExists: true);
|
withVersion: ["LIVE", "PTU", "EPTU"], checkExists: true);
|
||||||
String? scInstalledPath;
|
|
||||||
|
String scInstalledPath = "not_install";
|
||||||
|
|
||||||
if (scInstallPaths.isNotEmpty) {
|
if (scInstallPaths.isNotEmpty) {
|
||||||
|
if (scInstallPaths.first.isNotEmpty) {
|
||||||
scInstalledPath = scInstallPaths.first;
|
scInstalledPath = scInstallPaths.first;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
final lastScreenInfo = S.current
|
final lastScreenInfo = S.current
|
||||||
.home_action_info_scan_complete_valid_directories_found(
|
.home_action_info_scan_complete_valid_directories_found(
|
||||||
scInstallPaths.length.toString());
|
scInstallPaths.length.toString());
|
||||||
|
Reference in New Issue
Block a user