diff --git a/lib/util/game_launcher.dart b/lib/util/game_launcher.dart index d243ea2..bdcdd53 100644 --- a/lib/util/game_launcher.dart +++ b/lib/util/game_launcher.dart @@ -58,6 +58,10 @@ Future _launchGame(BuildContext context, String trainerPath, int appId, Vo } } else { gamePath = '$steamPath/steamapps/compatdata/$nonSteamGameId'; + if (!await dirExist(gamePath)) { + if (!context.mounted) return; + throw Exception(AppLocalizations.of(context)!.gamePathNotFound(gamePath)); + } } }