aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorRémy Raes <contact@remyraes.com>2022-01-07 23:19:32 +0100
committerGitHub <noreply@github.com>2022-01-07 23:19:32 +0100
commit47c9ea288b97e1c11baaadde7cc24d6704d8ea22 (patch)
treef7c212d2c0b85a923c9f616958561bae94378219 /src/index.js
parent81024fb393af7a2ec6b96c7ae40f415b01718a40 (diff)
downloadViper-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/index.js')
-rw-r--r--src/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 330b2b7..53781dd 100644
--- a/src/index.js
+++ b/src/index.js
@@ -72,6 +72,8 @@ ipcMain.on("newpath", (event, newpath) => {
win.show();
}
}
+}); ipcMain.on("wrongpath", (event) => {
+ win.webContents.send("wrongpath");
});
ipcMain.on("getversion", () => {