Skip to content

Commit

Permalink
feat: update error message (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyyadd authored Nov 12, 2023
1 parent 162f4c0 commit 0ad72f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/game_launcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ Future<void> _launchGame(String trainerPath, int appId, VoidCallback stopCircleI
int? nonSteamGameId = _getAppIdFromPS();
if (nonSteamGameId == null) {
throw Exception(getTranslatedText(
"Game path not found. Please ensure the game is installed.\n\nIf it's a non-Steam game, make sure the game is running.\n\nCurrent Path: $gamePath",
"游戏路径未找到。请确保游戏已安装。\n\n如果是非Steam游戏,请确保游戏已启动。\n\n当前路径为: $gamePath"));
"Game path not found. Please ensure the game is installed.\n\nIf it's a non-Steam game or a custom trainer, make sure the game is running.\n\nCurrent Path: $gamePath",
"游戏路径未找到。请确保游戏已安装。\n\n如果是非Steam游戏或者自定义修改器,请确保游戏已启动。\n\n当前路径为: $gamePath"));
} else {
gamePath = '$steamPath/steamapps/compatdata/$nonSteamGameId';
}
Expand Down

0 comments on commit 0ad72f4

Please sign in to comment.