diff --git a/lib/ui/home/home_ui_model.dart b/lib/ui/home/home_ui_model.dart index 467f229..d1d5f45 100644 --- a/lib/ui/home/home_ui_model.dart +++ b/lib/ui/home/home_ui_model.dart @@ -87,9 +87,13 @@ 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) { - scInstalledPath = scInstallPaths.first; + if (scInstallPaths.first.isNotEmpty) { + scInstalledPath = scInstallPaths.first; + } } final lastScreenInfo = S.current .home_action_info_scan_complete_valid_directories_found(