fix: home game location scan

This commit is contained in:
xkeyC 2024-03-17 20:47:06 +08:00
parent 946b465973
commit 44f74004eb

View File

@ -87,10 +87,14 @@ class HomeUIModel extends _$HomeUIModel {
}
final scInstallPaths = await SCLoggerHelper.getGameInstallPath(listData,
withVersion: ["LIVE", "PTU", "EPTU"], checkExists: true);
String? scInstalledPath;
String scInstalledPath = "not_install";
if (scInstallPaths.isNotEmpty) {
if (scInstallPaths.first.isNotEmpty) {
scInstalledPath = scInstallPaths.first;
}
}
final lastScreenInfo = S.current
.home_action_info_scan_complete_valid_directories_found(
scInstallPaths.length.toString());