aboutsummaryrefslogtreecommitdiff
path: root/src/utils.js
diff options
context:
space:
mode:
authorRémy Raes <raes.remy@gmail.com>2022-01-23 20:05:37 +0100
committerGitHub <noreply@github.com>2022-01-23 20:05:37 +0100
commitc92db733034a549e53ebf2c83aaea828ca61697a (patch)
treeca3423c74b938dc038edb544722bc3bf83c03fd3 /src/utils.js
parent837008b5baf2233c2c5e900e4f55a2ecf52bef1b (diff)
downloadViper-c92db733034a549e53ebf2c83aaea828ca61697a.tar.gz
Viper-c92db733034a549e53ebf2c83aaea828ca61697a.zip
fix: Finding Windows game folder (#55)
Diffstat (limited to 'src/utils.js')
-rw-r--r--src/utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.js b/src/utils.js
index bc0f66c..a2c61d4 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -136,8 +136,8 @@ async function setpath(win) {
ipcMain.emit("newpath", null, settings.gamepath);
}
- let gamepath = findgame();
- if (findgame()) {
+ let gamepath = await findgame();
+ if (gamepath) {
setGamepath(gamepath);
return;
}