Skip to content

Commit

Permalink
feat: update game path exception
Browse files Browse the repository at this point in the history
  • Loading branch information
wyyadd committed Oct 8, 2024
1 parent d37bba9 commit 1d1fa81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/util/game_launcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ Future<void> _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));
}
}
}

Expand Down

0 comments on commit 1d1fa81

Please sign in to comment.