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,9 +87,13 @@ 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) {
scInstalledPath = scInstallPaths.first; if (scInstallPaths.first.isNotEmpty) {
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(