diff options
author | Rémy Raes <contact@remyraes.com> | 2022-01-07 23:19:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-07 23:19:32 +0100 |
commit | 47c9ea288b97e1c11baaadde7cc24d6704d8ea22 (patch) | |
tree | f7c212d2c0b85a923c9f616958561bae94378219 /src/lang | |
parent | 81024fb393af7a2ec6b96c7ae40f415b01718a40 (diff) | |
download | Viper-47c9ea288b97e1c11baaadde7cc24d6704d8ea22.tar.gz Viper-47c9ea288b97e1c11baaadde7cc24d6704d8ea22.zip |
fix: Game path check (#29)
* [feat] adding methods signature to alert when selected game path is falsy
* [feat] a game path is valid if it contains 'Titanfall2.exe' file
* [feat] adding translations for wrong gamepath key
* [feat] if a wrong path has been selected, ask for it again
* formatting and removing useless function
Given we only use checkGamePath() once there's no need to even have a
function for it.
Co-authored-by: 0neGal <mail@0negal.com>
Diffstat (limited to 'src/lang')
-rw-r--r-- | src/lang/en.json | 1 | ||||
-rw-r--r-- | src/lang/fr.json | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lang/en.json b/src/lang/en.json index cc75268..10f03cd 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -37,6 +37,7 @@ "gui.selectpath": "Please select the path!", "gui.gamepath.must": "The game path must be set to start Viper.", + "gui.gamepath.wrong": "This folder is not a valid game path.", "general.launching": "Launching", diff --git a/src/lang/fr.json b/src/lang/fr.json index 870fbfe..0cd9bfb 100644 --- a/src/lang/fr.json +++ b/src/lang/fr.json @@ -37,6 +37,7 @@ "gui.selectpath": "Veuillez sélectionner le dossier où se trouve le client Titanfall 2.", "gui.gamepath.must": "Vous devez sélectionner le chemin du dossier du jeu Titanfall 2 pour pouvoir lancer Viper.", + "gui.gamepath.wrong": "Ce dossier ne contient pas le jeu Titanfall 2, et n'est donc pas valide.", "general.launching": "Lancement", |